diff --git a/index.js b/index.js index 745efebc3e..a86642cd83 100644 --- a/index.js +++ b/index.js @@ -380,9 +380,16 @@ RedisClient.prototype.on_ready = function () { RedisClient.prototype.on_info_cmd = function (err, res) { if (err) { + /* ignore if the command info is not existing */ + if (err.message === "ERR unknown command 'info'"){ + this.server_info = {}; + this.on_ready(); + return; + } else { err.message = 'Ready check failed: ' + err.message; this.emit('error', err); return; + } } /* istanbul ignore if: some servers might not respond with any info data. This is just a safety check that is difficult to test */