Skip to content

Occasional ENOTFOUND error in ApplicationInsights:Sender #262

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

Open
CSobol opened this issue Jun 2, 2017 · 6 comments
Open

Occasional ENOTFOUND error in ApplicationInsights:Sender #262

CSobol opened this issue Jun 2, 2017 · 6 comments
Labels
Milestone

Comments

@CSobol
Copy link

CSobol commented Jun 2, 2017

There is an issue in Node's dns.js which can cause an occasional getaddirinfo ENOTFOUND error when making HTTP requests if an option specifying whether to use IPv4 or IPv6 is not passed via the config object.

Adding family: to the object instantiated here with a value of either 4 or 6 (depending on your needs) would resolve the issue, and here is a discussion of the issue.

@OsvaldoRosado
Copy link
Member

This is unfortunate to have to hardcode, especially since the endpoint address is configurable. Do you know of any other workarounds?

@CSobol
Copy link
Author

CSobol commented Jun 6, 2017

Agreed there...

I'm not intimately familiar with Node's dns lookup functionality, there doesn't seem to be a perfect solution. You could cache DNS info, which of course has its own issues, and would only lessen the frequency of the issue...

As long as you are doing any sort of DNS lookup, it has the potential to trigger this bug.

@AlexBulankou
Copy link
Contributor

Moving into Future (post 1.0), based on low report count. @OsvaldoRosado let me know if you think this should be in for stable? The only solution for this one right I can think of would be adding IPv4/V6 as optional setting to config.

@AlexBulankou AlexBulankou added this to the Future milestone Aug 16, 2017
@OsvaldoRosado
Copy link
Member

Future sounds right to me for this one. The other bugs are more critical. We will retry on this error regardless.

@juan-tenorio
Copy link

Hi,

We are currently getting this error at start-up and are not able to get any data into Application Insights. Has any work been done? Do we have to default to ipv4 for now?

@hectorhdzg
Copy link
Member

@tenoriojuann issue was resolved in dns.js side according to the referenced issue, can you elaborate about your scenario?, is possible some firewall is blocking the telemetry request, that is usually the case when this error is triggered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants