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
I try to make the wrong host to connect, and listening the error events, like below:
varRedis=require('ioredis');varredis=newRedis({host: '127.10.0.1',// wrong hostport: 6379,db: 1});redis.on('error',function(err){// it should be timeout or connect error// but cannot handle the errorconsole.log(err);});
and I try to make the wrong port, and the event could handle the connect error [Error: connect ECONNREFUSED 127.0.0.1:16379]
Is there any way to handle the wrong host connect error ?
The text was updated successfully, but these errors were encountered:
I try to make the wrong host to connect, and listening the error events, like below:
and I try to make the wrong port, and the event could handle the connect error
[Error: connect ECONNREFUSED 127.0.0.1:16379]
Is there any way to handle the wrong host connect error ?
The text was updated successfully, but these errors were encountered: