Open buog opened 8 months ago
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
Hi @canegru Is the Google DNS IP 8.8.8.8?
This doesn't help my case. :(
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