-
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
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
canegru commentedon Nov 18, 2023
Had the same issue here, but only on my local machine while developing.
Tracked it down to the default DNS that my router was using (Comcast). Changed the router's DNS to Google's and don't have any issues anymore.
Hope this helps
pauluskim commentedon Jun 8, 2024
Hi @canegru
Is the Google DNS IP 8.8.8.8?
This doesn't help my case. :(