Skip to content

cluster-slots #3059

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions