Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect argument count causes followup call to hang #1846

Closed
chibisuke opened this issue Jan 18, 2022 · 0 comments
Closed

Incorrect argument count causes followup call to hang #1846

chibisuke opened this issue Jan 18, 2022 · 0 comments
Labels

Comments

@chibisuke
Copy link

Calling a node-redis function with an invalid argument count like in the below example causes all following calls to stall.

reproduction code:

(async () => {
    const { createClient } = require('redis');
    const redis = createClient();
    
    await redis.connect();

    await redis.hmGet("bla").catch((e) => console.log(e));
    console.log("after hmGet");
    console.log(await redis.ping()); //ping does NOT return in this example
    console.log("after ping");
})();

Restarting the connection (redis.quit() redis.connect()) doesn't do anything either. 1

Environment:

  • Node.js Version: v16.13.2
  • Redis Server Version: 255.255.255
  • Node Redis Version: 4.0.2
  • Platform: Debian
@chibisuke chibisuke added the Bug label Jan 18, 2022
leibale added a commit to leibale/node-redis that referenced this issue Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant