We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code is from README.md, I run it by node main.js
node main.js
import { createClient } from 'redis'; const client = createClient(); client.on('error', err => console.log('Redis Client Error', err)); await client.connect();
And I start redis by
docker run -p 6379:6379 -it redis/redis-stack-server:latest
I can confirm that I can connect the server using redis-cli, But I can't do it in nodejs. Do I miss some essential operation to make it run?
redis-cli
20.16.0
latest
4.7.0
Linux
No response
The text was updated successfully, but these errors were encountered:
i don't see anything obviusly wrong, and the basic structure works for me, something else must be going on.
Sorry, something went wrong.
I can reproduce the error on my other machine. Do you have some idea to get further information for debugging?
does it just hang? for instance, if I try to do it without a redis-server running on localhost:6379, I get a repeated error of
Redis Client Error Error: connect ECONNREFUSED 127.0.0.1:6379
which makes sense.
to not get that error, would imply that its "connecting", but stuck somewhere, which makes little sense to me.
No branches or pull requests
Description
The following code is from README.md, I run it by
node main.js
And I start redis by
I can confirm that I can connect the server using
redis-cli
, But I can't do it in nodejs. Do I miss some essential operation to make it run?Node.js Version
20.16.0
Redis Server Version
latest
Node Redis Version
4.7.0
Platform
Linux
Logs
No response
The text was updated successfully, but these errors were encountered: