Skip to content

cluster-slots #3059

@nickdev1

Description

@nickdev1

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

Logs

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions