-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Description
Description
For the past couple of weeks, I am getting this error message inconsistently thorough when im trying to debug.
Unhandled error event: Error: getaddrinfo ENOTFOUND redis-mycloud.us-west-1-2.ec2.cloud.redislabs.com
at GetAddrInfoReqWrap.onlookup [as oncomplete]
his.redis = new Redis({
host: process.env.host,
port: process.env port,
password: process.env.REDIS_PASSWORD,
connectTimeout: 30000,
family: 6, //found on issues but still doesn't work
});
I realized i am able to reconnect after a long time not connecting. Also switching networks (wifi) instantly fixes this issue.
I wonder maybe im debugging and connecting it too often since I'm trying to debug?
I'm using redis cloud trying to connect and using socket.io
Node.js Version
20.7
Redis Server Version
No response
Node Redis Version
5.3.2
Platform
mac
Logs
[ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis.mycloudus-west-1-2.ec2.cloud.redislabs.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)
canegru