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

Successfully connected to Redis server, but did not trigger connect, ready event callback #2728

Open
xianping-yan opened this issue Apr 1, 2024 · 0 comments
Labels

Comments

@xianping-yan
Copy link

Description

tempRedisClient = createCluster({ rootNodes: [{ url:redis://${process.env.REDIS_SERVER}}], defaults: { password:${process.env.REDIS_PASSWORD} }, useReplicas: true }) tempRedisClient.on('connect', () => { console.log('connect') }) tempRedisClient.on('ready', () => { console.log('ready') }) tempRedisClient.on('end', () => { console.log('end') }) tempRedisClient.on('error', (error) => { console.log('error', error) }) tempRedisClient.on('reconnecting', () => { console.log('reconnecting') }) await tempRedisClient.connect()

Node.js Version

v18.17.0

Redis Server Version

No response

Node Redis Version

4.6.13

Platform

macOS

Logs

No response

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