redis/node-redis

9.5.0 breaks app with request for setinfo on older redis

paco-sparta opened this issue · 1 comments

Current

7.2.0 introduced the command CLIENT SETINFO, which the library already implements. The trouble is, we use Elasticache on AWS the latest supported version is 7.1. That means every Elasticache integration with 9.5.0 will give a failure that is tracked by monitoring.

Screenshot 2024-11-21 at 11 56 40

Error: ERR Unknown subcommand or wrong number of arguments for 'SETINFO'. Try CLIENT HELP.

Expected

If the server does not support CLIENT SETINFO the client should fail silently. At least until Elasticache updates.

Node.js Version

latest

Redis Server Version

7.1.0

Node Redis Version

4.6.14

Platform

All

Logs

Error: ERR Unknown subcommand or wrong number of arguments for 'SETINFO'. Try CLIENT HELP.

It does fail silently, it's our Redis/Elasticache instances who're responding with the error.