An HTTP Request node fails with getaddrinfo EAI_AGAIN, although the service appears reachable from the host or browser. The failure occurs during name resolution. A test outside the n8n container may therefore examine a different configuration from the affected workflow.
What the reported case shows
A historical report from 2021 concerns a local service name in Docker. Replacing it with an IP address produced a connection error on another port; the replacement did not establish a complete fix. Q1 Docker documents different DNS arrangements for default and user-defined networks. Node.js also distinguishes operating-system name lookup from direct DNS queries. Q2 Q3
This guide addresses a diagnostic category, not a claimed current n8n DNS defect. The hostname, network and resolver actually used by the failing process matter.
Narrow down the failure
- Preserve the actual hostname. Inspect the URL after expression evaluation, including spelling, scheme, port and local name suffixes. A name known to your workstation need not exist in a container.
- Test in the affected context. Ask the administrator to check resolution from the n8n container or an equivalently configured diagnostic environment. Compare several timestamped attempts with host-side results to distinguish a persistent configuration issue from an intermittent failure.
- Identify the destination type. Is it a public hostname, a private company name or another container service? A Docker service needs a suitable shared network and the name valid on that network. A public resolver does not automatically know private zones.
- Observe resolver and network configuration. Compare container DNS settings, network membership and reachability of the intended resolver. Do not change DNS globally before establishing which private namespaces must remain available.
- Test connectivity afterwards. Once resolution succeeds, check the intended service port.
ECONNREFUSED, TLS failures and HTTP status codes are new findings at a different layer and require different investigations.
Choose a correction supported by the result
Correct an invalid service name, add a specifically required network path, or ask the operator to repair a demonstrated resolver outage. Hard-coding a changing container IP is generally not a durable answer. For HTTPS, substituting an IP can also interfere with the intended hostname relationship.
After correction, repeat the same name-resolution checks and one harmless request using the original intended hostname. Keep the before-and-after results so that a later container recreation can be assessed against the same evidence.
Frequently asked questions
Will an immediate retry help?
It may help with a transient failure, but does not explain its cause. Limit attempts and consider the effects of the entire workflow.
What information is useful?
Provide n8n and Docker versions, anonymised URL with port, a narrow network diagram, timestamps and resolution results from inside and outside the container. Do not publish credentials or a full internal network inventory.
Help with this case
We can help isolate the affected process and prepare a controlled next step. Discuss case A0176 with KAN KAI WORKS.
Prepare a findings note
Summarise your observations for your enquiry. The note is created in your browser and is not saved or sent here. You can then copy it into the contact form.
Unknown is fine. Do not enter passwords, customer data or complete confidential logs.
Support with this issue
We investigate n8n using your error message, versions and a narrowly scoped example.
Sources
- Q1 · Originalbericht / original report
- Q2 · Docker: Networking and DNS
- Q3 · Node.js: DNS and operating-system lookup
Sources checked on 5 November 2026. Individual reports do not establish general prevalence.
