Successfully connected to Redis server, but did not trigger connect, ready event callback
xianping-yan opened this issue · comments
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
I thinks this issue is related - #1855
Only error
event is emitted from a cluster mode.