Skip to content

at GetAddrInfoReqWrap.onlookup error when trying to connect #2644

@buog

Description

@buog

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)

Activity

canegru

canegru commented on Nov 18, 2023

@canegru

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

pauluskim commented on Jun 8, 2024

@pauluskim

Hi @canegru
Is the Google DNS IP 8.8.8.8?

This doesn't help my case. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @pauluskim@canegru@buog

        Issue actions

          at GetAddrInfoReqWrap.onlookup error when trying to connect · Issue #2644 · redis/node-redis