Hi, I am trying to connect to redis from node.js, which is successful, now I have placed my node.js server application on an amazon ec2 instance and redis on an Amazon elastic cache instance, the connection to redis is successful, but once after a while I get the error below.
var pub = redis.createClient(6379,'quizredis.qnsdtp.0001.apse1.cache.amazonaws.com'); events.js:72 throw er; // Unhandled 'error' event ^ Error: Redis connection to quizredis.qnsdtp.0001.apse1.cache.amazonaws.com:6379 failed - getaddrinfo ENOTFOUND at RedisClient.on_error (/home/ec2-user/roomChat-7/node_modules/redis/index.js:196:24) at Socket.<anonymous> (/home/ec2-user/roomChat-7/node_modules/redis/index.js:106:14) at Socket.EventEmitter.emit (events.js:95:17) at net.js:813:16
Im using the redis-npm module;
source share