You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix(handshake): ignore errors on client.setinfo (#2969)
As per the documentation (https://redis.io/docs/latest/commands/client-setinfo): Client libraries are expected to pipeline this command after authentication on all connections and ignore failures since they could be connected to an older version that doesn't support them. Turns out different versions of redis server return different errors, so its better to catch all. fixes #2968
This commit is contained in:
committed by
GitHub
parent
b8acbce213
commit
9ea260f0f9
@@ -70,11 +70,7 @@ export class ErrorReply extends Error {
|
||||
}
|
||||
}
|
||||
|
||||
export class SimpleError extends ErrorReply {
|
||||
isUnknownSubcommand(): boolean {
|
||||
return this.message.toLowerCase().indexOf('err unknown subcommand') !== -1;
|
||||
}
|
||||
}
|
||||
export class SimpleError extends ErrorReply {}
|
||||
|
||||
export class BlobError extends ErrorReply {}
|
||||
|
||||
|
Reference in New Issue
Block a user