question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Random 502 Failed to load destination. Caused by: Failed to fetch destination ... Caused by: getaddrinfo ENOTFOUND

See original GitHub issue
Random 502 Failed to load destination. Caused by: Failed to fetch destination <sf-end-user>. Caused by: getaddrinfo ENOTFOUND destination-configuration.cfapps.eu30.hana.ondemand.com

That looks like some sort of hostname resolution error, right?

This occurs seemingly at random. The destination exists and works fine most of the time. I don’t know where to start to get to the bottom of this issue… help is appreciated 😄

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
piejanssenscommented, Nov 7, 2022

Interesting article on Node, caching DNS requests and expecting OS to handle the cache: https://medium.com/@amirilovic/how-to-fix-node-dns-issues-5d4ec2e12e95

1reaction
piejanssenscommented, Nov 7, 2022

NodeJS Doc:

On error, err is an Error object, where err.code is the error code. Keep in mind that err.code will be set to ‘ENOTFOUND’ not only when the host name does not exist but also when the lookup fails in other ways such as no available file descriptors.

Possiblity related? Solution is to use dnscache package.

https://stackoverflow.com/questions/59496349/how-to-run-multiple200-http-requests-in-node-js-without-getting-enotfound-err

Read more comments on GitHub >

github_iconTop Results From Across the Web

http.get returns "getaddrinfo ENOTFOUND" error #5436 - GitHub
Hi all, I'm trying to fix following problem since five days. When I'm doing a http.get("http://url/", cb); or http.get(options, cb); ...
Read more >
Node.js getaddrinfo ENOTFOUND - Stack Overflow
I got this issue resolved by removing non-desirable characters from the password for the connection. For example, I had these characters: <##% and...
Read more >
How To Fix a 502 Bad Gateway Error - Kinsta
The 502 bad gateway error specifically means that server received an invalid response from an inbound server. Check out these common causes ...
Read more >
Error: getaddrinfo ENOTFOUND when calling s/4 on-premise ...
Both destination and cloud connector have been setup by our Basis team. Source code shown below. const { executeHttpRequest, getDestination } = ...
Read more >
Host(s) Unable to Connect to Management Plane With "Error
Host(s) Unable to Connect to Management Plane With "Error: getaddrinfo ENOTFOUND. Problem. Host(s) are unable to remain online from the Management Plane's ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found