n8n - 💡(How to fix) Fix Repeated error in workflow: "The connection cannot be established" [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#28484Fetched 2026-04-15 06:44:20
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
commented ×1labeled ×1mentioned ×1subscribed ×1

Error Message

Describe the problem/error/question

I am getting the error message "The connection cannot be established" in some runs of one of my workflows. It only happens sometimes and then if you rerun it, it is fine.

What is the error message (if any)?

Error details Error code The output is the error message above

  • error: all

Code Example

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
⚠️ WARNING ⚠️ If you have sensitive data in your workflow (like API keys), please remove it before sharing.
RAW_BUFFERClick to expand / collapse
<!-- Please follow the template below. Skip the questions that are not relevant to you. -->

Describe the problem/error/question

I am getting the error message "The connection cannot be established" in some runs of one of my workflows. It only happens sometimes and then if you rerun it, it is fine.

What is the error message (if any)?

The connection cannot be established, this usually occurs due to an incorrect host (domain) value Error details

From HTTP Request Error code ENOTFOUND Full message getaddrinfo ENOTFOUND api.stripe.com Request { "headers": { "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/;q=0.9, image/;q=0.8, /;q=0.7", "Authorization": "hidden" }, "method": "GET", "uri": "https://api.stripe.com/v1/payment_intents/search?query=metadata[\"chargebee_invoice_id\"]:\"CA-8446\"", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "sendCredentialsOnCrossOriginRedirect": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true } Other info Item Index 0 Node type n8n-nodes-base.httpRequest Node version 4.2 (Latest version: 4.3) n8n version 1.123.27 (Cloud) Time 4/14/2026, 1:40:04 PM Stack trace NodeApiError: The connection cannot be established, this usually occurs due to an incorrect host (domain) value at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_24a3228104b5da398564ecc498d597f6/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1294:10) at processTicksAndRejections (node:internal/process/task_queues:103:5) at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_24a3228104b5da398564ecc498d597f6/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1594:11)

Problem in node ‘HTTP: Check Existing PI‘ The connection cannot be established, this usually occurs due to an incorrect host (domain) value

Please share your workflow/screenshots/recording

These are the first 3 nodes, it always fails on node 2

{ "nodes": [ { "parameters": { "httpMethod": "POST", "path": "cb-invoice-generated", "responseMode": "lastNode", "options": {} }, "id": "REDACTED", "name": "CB Webhook: invoice_generated", "type": "n8n-nodes-base.webhook", "typeVersion": 2, "position": [ -1440, -272 ], "webhookId": "cb-invoice-generated" }, { "parameters": { "url": "=https://api.stripe.com/v1/payment_intents/search?query=metadata["chargebee_invoice_id"]:"{{ $('CB Webhook: invoice_generated').item.json.body.content.invoice.id }}"", "authentication": "predefinedCredentialType", "nodeCredentialType": "stripeApi", "options": {} }, "id": "REDACTED", "name": "HTTP: Check Existing PI", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ -1216, -272 ], "credentials": { "stripeApi": { "id": "REDACTED", "name": "Stripe account" } } }, { "parameters": { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 1 }, "conditions": [ { "id": "idempotency-check", "leftValue": "={{ $('HTTP: Check Existing PI').item.json.data.length }}", "rightValue": 0, "operator": { "type": "number", "operation": "gt" } } ], "combinator": "and" }, "options": {} }, "id": "REDACTED", "name": "IF: Already charged?", "type": "n8n-nodes-base.if", "typeVersion": 2, "position": [ -992, -272 ] } ], "connections": { "CB Webhook: invoice_generated": { "main": [ [ { "node": "HTTP: Check Existing PI", "type": "main", "index": 0 } ] ] }, "HTTP: Check Existing PI": { "main": [ [ { "node": "IF: Already charged?", "type": "main", "index": 0 } ] ] }, "IF: Already charged?": { "main": [ [], [] ] } }, "pinData": {}, "meta": { "instanceId": "REDACTED" } }

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
⚠️ WARNING ⚠️ If you have sensitive data in your workflow (like API keys), please remove it before sharing.

Share the output returned by the last node

<!-- If you need help with data transformations, please also share your expected output. -->

The output is the error message above

Debug info

core

  • n8nVersion: 1.123.27
  • platform: docker (cloud)
  • nodeJsVersion: 24.13.1
  • nodeEnv: production
  • database: sqlite
  • executionMode: regular
  • concurrency: 50
  • license: enterprise (sandbox)

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 720 hours
  • maxCount: 25000 executions

client

  • userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/147.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2026-04-14T12:55:12.537Z}

extent analysis

TL;DR

The issue can be resolved by checking the DNS resolution of the Stripe API domain and ensuring that the node has a stable internet connection, as the error message suggests a transient networking issue.

Guidance

  • Verify that the DNS resolution for api.stripe.com is working correctly from the node running the workflow.
  • Check the node's internet connection stability and ensure it can reach the Stripe API endpoint.
  • Consider adding retry logic to the HTTP request node to handle transient networking issues.
  • Review the node's credentials and authentication settings to ensure they are correct and not causing the issue.

Example

No code example is provided as the issue seems to be related to networking and DNS resolution rather than code.

Notes

The error message getaddrinfo ENOTFOUND api.stripe.com suggests a DNS resolution issue, which could be caused by a transient networking problem or a misconfigured DNS setup. The fact that the issue only happens sometimes and resolves itself upon retrying suggests a networking-related issue.

Recommendation

Apply a workaround by adding retry logic to the HTTP request node to handle transient networking issues, as the root cause of the issue is likely related to networking and not a code or configuration problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING