Issue with Connection resets and Time outs.
See original GitHub issuevar http = require('http'),
Redis = require('ioredis'),
redis = new Redis({host: '<Snipe>', password: '<Snipe>'});
http.createServer(function(request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
redis.hget('player:3064ce58-a05d-4783-86aa-c700b3e9fc66', 'Rank', function (err, result) { response.end(result); });
}).listen(4546);
process.on('uncaughtException', function(ex) {console.log(ex.stack());});
console.log('SERVER IS NOW ON! :3');
Node logs:
1|server | SERVER IS NOW ON! :3
[STREAMING] Now streaming realtime logs for [all] processes 1|server | [ioredis] Unhandled error event: Error: read ECONNRESET 1|server | at exports._errnoException (util.js:1036:11) 1|server | at TCP.onread (net.js:564:26) 3|server | [ioredis] Unhandled error event: Error: read ECONNRESET 3|server | at exports._errnoException (util.js:1036:11) 3|server | at TCP.onread (net.js:564:26) 2|server | [ioredis] Unhandled error event: Error: read ECONNRESET 2|server | at exports._errnoException (util.js:1036:11) 2|server | at TCP.onread (net.js:564:26) 1|server | [ioredis] Unhandled error event: Error: read ETIMEDOUT 1|server | at exports._errnoException (util.js:1036:11) 1|server | at TCP.onread (net.js:564:26) 3|server | [ioredis] Unhandled error event: Error: read ETIMEDOUT 3|server | at exports._errnoException (util.js:1036:11) 3|server | at TCP.onread (net.js:564:26)
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
I also recently stumbled upon this issue when trying to connect to remote redis instances, here are the logs from node:
I am able to connect to a single instance (with port 6379 ) and execute commands using
ioredis
but not the sentinels, although I can connect to the sentinels using medis, any idea what the problem could be?It seems to be a network problem. Are you able to connect to your redis instance via redis-cli?