-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Description
Description
When attempting to tap into the class created by 'createCluster' with on('error', ...). When a node within the cluster comes offline unexpectedly the library runs https://github.com/redis/node-redis/blob/master/packages/client/lib/cluster/cluster-slots.ts#L346 and crashes the application. Instead of console.error(err)
... can this be this.#emit('error', err)
so that the error can be tapped into?
Node.js Version
22.15.0
Redis Server Version
8.2-alpine
Node Redis Version
5.8.1
Platform
Linux