n8n

Error: Failed to receive response

What this means

The chat window sent your message to n8n but never got a usable reply back, usually because it can't reach n8n's address or the connection was cut.

Why you're seeing this

  • n8n's public address is set wrong (self-hosted)

    Common

    The chat box in your browser sends each message to an address that n8n builds from its own settings. If n8n thinks its address is 'localhost', '0.0.0.0', an internal Docker address, or plain http when you actually use https, the browser can't reach it. The message never arrives, no execution shows up, and no node changes color. This was the confirmed fix in 6 of the 13 forum threads we read, and the suggested cause in most of the rest.

  • Updated settings never took effect

    Sometimes

    People often change the address settings but the running n8n container keeps its old ones. In one confirmed case, only starting the containers again from the command line fixed it. In another thread, a helper pointed out that a plain Docker Compose restart reuses the old settings.

  • A proxy or hosting layer cut off a slow reply

    Sometimes

    When n8n sits behind a reverse proxy (for example Nginx Proxy Manager, Home Assistant, or Cloudflare), the proxy can give up while the AI agent is still thinking and return a timeout (504) page instead of the answer. In streaming mode the chat window treats any failed reply as this error. We saw this in 1 forum thread plus the GitHub issue it led to, where the cutoff hit at about 1.5 minutes. Changing N8N_WEBHOOK_TTL didn't help there.

  • Test chat inside the editor couldn't start the test run

    Rare

    In the editor's chat panel, n8n starts a fresh test run before sending each message. If that step fails (for example, the editor's live connection to the server isn't up within 10 seconds, or the run can't be started), the chat shows this error. This comes from reading n8n's source code. We didn't see it confirmed as the cause in any forum thread.

  • File upload with Streaming response mode (older versions)

    Rare

    A known bug: on the public chat with both file uploads and Streaming turned on, sending a file failed with this error and no execution was logged. It was fixed in n8n 2.1.0.

  • Your website isn't allowed to call the chat (embedded chat)

    Rare

    If you embed the chat on your own website, the Chat Trigger's Allowed Origins (CORS) option decides which websites may call it. If your site isn't on that list, the browser blocks the request and the chat can't get a reply. This is based on the docs and source code. We didn't see it confirmed in a forum thread.

How to fix it

  1. 1

    Send a test message, then open the Executions list for the workflow. If no new execution appears, the message never reached n8n. That points to an address or network problem, not your AI model or credentials.

  2. 2

    Open your browser's developer tools (F12), go to the Network tab, and send a chat message again. Find the failed (red) request and look at its address. If it points to localhost, 0.0.0.0, an internal IP, or http instead of https, that's the problem.

  3. 3

    Self-hosted: set n8n's address settings to the exact address you type into your browser to open n8n. That means N8N_HOST (the host name or IP), N8N_PROTOCOL (http or https), N8N_EDITOR_BASE_URL, and N8N_WEBHOOK_URL (called WEBHOOK_URL before n8n 2.35.0). Don't use localhost or 0.0.0.0 if you chat from a different machine.

  4. 4

    Make sure the new settings actually load. With Docker Compose, recreate the container (for example `docker compose up -d --force-recreate`) instead of just restarting it. Then try the chat again.

  5. 5

    If n8n is behind a reverse proxy, follow n8n's reverse-proxy guide. Set N8N_WEBHOOK_URL to your public https address, set N8N_PROXY_HOPS=1, and have the proxy pass the X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Proto headers.

  6. 6

    If the error only shows up after a long wait, or the Network tab shows a 504 Gateway Time-out page, something in front of n8n (a proxy or hosting layer) gave up waiting for the reply. Test with a shorter, faster workflow to confirm.

  7. 7

    Embedded chat on your own website: open the Chat Trigger node's options and make sure Allowed Origins (CORS) is '*' or includes your website's address.

  8. 8

    If it fails only when you attach a file and the Chat Trigger's response mode is Streaming, update n8n to 2.1.0 or later.

  9. 9

    If an execution does appear, open it and look for a node that turned red. That node's own error tells you what actually failed.

Why this happens (the technical detail)

This message comes from n8n's chat window itself, not from your workflow. The same chat window is used in the editor's test chat, the hosted chat page, and the embeddable chat widget. Each time you send a message, it calls the Chat Trigger's web address. If that call fails outright (the address can't be reached, the browser blocks it, or the connection drops), the chat window can't tell you why, so it shows 'Error: Failed to receive response'. In Streaming mode, any error reply (such as a proxy's 504 timeout page) also produces this message. Because the problem is usually the connection between your browser and n8n, the workflow often never runs: forum posters report that no node turns red and no execution is logged. The same workflow works fine when started with a manual trigger.

Related errors

Sources

Last verified 2026-09-18.