You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/Redis.ts
+7-1
Original file line number
Diff line number
Diff line change
@@ -766,6 +766,12 @@ class Redis extends Commander {
766
766
const_this=this;
767
767
this.info(function(err,res){
768
768
if(err){
769
+
if(err.message&&err.message.includes("NOPERM")){
770
+
console.warn(
771
+
`Skipping the ready check because INFO command fails: "${err.message}". You can disable ready check with "enableReadyCheck". More: https://github.com/luin/ioredis/wiki/Disable-ready-check.`
772
+
);
773
+
returncallback(null,{});
774
+
}
769
775
returncallback(err);
770
776
}
771
777
if(typeofres!=="string"){
@@ -799,7 +805,7 @@ class Redis extends Commander {
0 commit comments