We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c66d1 commit b3407ffCopy full SHA for b3407ff
index.js
@@ -380,9 +380,16 @@ RedisClient.prototype.on_ready = function () {
380
381
RedisClient.prototype.on_info_cmd = function (err, res) {
382
if (err) {
383
+ /* ignore if the command info is not existing */
384
+ if (err.message === "ERR unknown command 'info'"){
385
+ this.server_info = {};
386
+ this.on_ready();
387
+ return;
388
+ } else {
389
err.message = 'Ready check failed: ' + err.message;
390
this.emit('error', err);
391
return;
392
+ }
393
}
394
395
/* istanbul ignore if: some servers might not respond with any info data. This is just a safety check that is difficult to test */
0 commit comments