diff --git a/java/client/src/main/java/glide/api/commands/ScriptingAndFunctionsBaseCommands.java b/java/client/src/main/java/glide/api/commands/ScriptingAndFunctionsBaseCommands.java index 3574a1c87c..798dbedf30 100644 --- a/java/client/src/main/java/glide/api/commands/ScriptingAndFunctionsBaseCommands.java +++ b/java/client/src/main/java/glide/api/commands/ScriptingAndFunctionsBaseCommands.java @@ -135,8 +135,8 @@ CompletableFuture fcallReadOnly( * @see valkey.io for details. * @since Valkey 8.0.0 and above. * @param sha1 The SHA1 digest of the script. - * @return The original source code of the script, if present in the cache. - * @throws RequestException if the script is not found in the cache. + * @return The original source code of the script, if present in the cache. If the script is not + * found in the cache, an error is thrown. * @example *
{@code
      * String scriptSource = client.scriptShow(luaScript.getHash()).get();
@@ -151,8 +151,8 @@ CompletableFuture fcallReadOnly(
      * @see valkey.io for details.
      * @since Valkey 8.0.0 and above.
      * @param sha1 The SHA1 digest of the script.
-     * @return The original source code of the script, if present in the cache.
-     * @throws RequestException if the script is not found in the cache.
+     * @return The original source code of the script, if present in the cache. If the script is not
+     *     found in the cache, an error is thrown.
      * @example
      *     
{@code
      * String scriptSource = client.scriptShow(gs(luaScript.getHash())).get();
diff --git a/java/client/src/test/java/glide/api/GlideClientTest.java b/java/client/src/test/java/glide/api/GlideClientTest.java
index 54a9f2f795..e1e6a530a2 100644
--- a/java/client/src/test/java/glide/api/GlideClientTest.java
+++ b/java/client/src/test/java/glide/api/GlideClientTest.java
@@ -1582,26 +1582,6 @@ public void invokeScript_with_ScriptOptionsGlideString_returns_success() {
         assertEquals(payload, response.get());
     }
 
-    @Test
-    public void scriptShow_returns_script_source() {
-        // setup
-        String scriptSource = "return { KEYS[1], ARGV[1] }";
-        String hash = UUID.randomUUID().toString();
-
-        CompletableFuture testResponse = new CompletableFuture<>();
-        testResponse.complete(scriptSource);
-
-        when(commandManager.submitNewCommand(eq(ScriptShow), eq(new String[] {hash}), any()))
-                .thenReturn(testResponse);
-
-        // exercise
-        CompletableFuture response = service.scriptShow(hash);
-
-        // verify
-        assertEquals(testResponse, response);
-        assertEquals(scriptSource, response.get());
-    }
-
     @SneakyThrows
     @Test
     public void scriptShow_returns_script_source_glidestring() {
diff --git a/node/src/BaseClient.ts b/node/src/BaseClient.ts
index f9dfceda50..744469a03b 100644
--- a/node/src/BaseClient.ts
+++ b/node/src/BaseClient.ts
@@ -232,9 +232,9 @@ import {
     ConfigurationError,
     ConnectionError,
     ExecAbortError,
-    ValkeyError,
     RequestError,
     TimeoutError,
+    ValkeyError,
 } from "./Errors";
 import { GlideClientConfiguration } from "./GlideClient";
 import {
@@ -3704,8 +3704,8 @@ export class BaseClient {
      *
      * @param sha1 - The SHA1 digest of the script.
      * @param options - (Optional) See {@link DecoderOption}.
-     * @returns The original source code of the script, if present in the cache.
-     * @throws RequestError if the script is not found in the cache.
+     * @return The original source code of the script, if present in the cache.
+     * If the script is not found in the cache, an error is thrown.
      *
      * @example
      * ```typescript
diff --git a/python/python/glide/async_commands/core.py b/python/python/glide/async_commands/core.py
index c75065941c..8498b0ae44 100644
--- a/python/python/glide/async_commands/core.py
+++ b/python/python/glide/async_commands/core.py
@@ -5404,9 +5404,7 @@ async def script_show(self, sha1: TEncodable) -> bytes:
 
         Returns:
             bytes: The original source code of the script, if present in the cache.
-
-        Raises:
-            RequestError: If the script is not found in the cache.
+                If the script is not found in the cache, an error is thrown.
 
         Example:
             >>> await client.script_show(script.get_hash())