From b3407ff8c7ed60b66202b039d5be5fe0cfd13e9d Mon Sep 17 00:00:00 2001 From: ivanB1975 Date: Thu, 29 Oct 2015 16:32:14 +0100 Subject: [PATCH] ignore if info command is not available on server --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) 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 */