Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to support all options http and https modules support for node #712

Closed
michaelBenin opened this issue Feb 18, 2017 · 4 comments
Closed

Comments

@michaelBenin
Copy link

Hello,

Currently we are using axios under heavy load.

We are encountering the error:

Error: getaddrinfo ENOTFOUND undefined undefined:80
    at errnoException (dns.js:26:10)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26)

Which is a known node issue:

nodejs/node#7931
nodejs/node#5436

According to 7931, this error can be mitigated by setting the family: v4 option.

After looking through axios's source, I don't believe setting that option is available:

https://github.com/mzabriskie/axios/blob/master/lib/adapters/http.js#L74

The available options in node shows the family property as well as others:

https://nodejs.org/api/https.html#https_https_request_options_callback

Thanks!

@michaelBenin
Copy link
Author

After forking and modifying to use v4, problem still persists. Next solutions for my team are to upgrade to latest node, as well more aggressive caching strategy.

@michaelBenin
Copy link
Author

This error was actually unrelated to axios.

@nathanmalishev
Copy link

Hey @michaelBenin what did this server end up being related to?

@yss14
Copy link

yss14 commented Mar 28, 2018

@michaelBenin Did it work in the end for you by forking and updating node version? I'm currently facing the same error under high load (Node.js 8.9.3).

@axios axios locked and limited conversation to collaborators May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants