Skip to content

"getaddrinfo ENOTFOUND" error #6

Description

@tyleri

I recently came across this issue when using request-promise-native. When sending a GET or POST request to certain URLs, I received a "getaddrinfo ENOTFOUND" error. This seems to happen randomly (i.e. some URL requests would throw this error during one run but work completely fine on the next). After some Googling, I found this issue:

nodejs/node#5436 (comment)

Although I didn't find this documented in the request-promise page, I added {"family": 4} to the options, and I stopped getting the error. It might be useful to either set "family" to 4 by default or just make a note of this in the documentation.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions