# Issue with Node (When chat message received)

**URL:** <https://community.n8n.io/t/issue-with-node-when-chat-message-received/288123>\
**Category:** Questions\
**Tags:** node\
**Created:** [April 15, 2026, 12:49pm UTC](https://community.n8n.io/t/issue-with-node-when-chat-message-received/288123 "2026-04-15T12:49:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ungelast](https://avatars.discourse-cdn.com/v4/letter/u/87869e/32.png) [@ungelast](https://community.n8n.io/u/ungelast)\
**Post date:** [April 15, 2026, 12:49pm UTC](https://community.n8n.io/t/issue-with-node-when-chat-message-received/288123/1 "2026-04-15T12:49:50Z")

</div>

## Describe the problem/error/question

> Hello, I am encountering an issue with the node (when chat message received). I am hosting n8n on docker on a VM in local. My issue is that the node by herself isn’t working. When i put a chat, a message pops up and says waiting for you to submit the chat and in the chat overlay the response has failed to receive response. After many research on the net i found out that when i send a message in the web console this error pops out Chat API error type error failed to fetch. I have no clue how to fix this if anyone has one i would appreciat to share it with me.
> 
> ![Capture d'écran 2026-04-15 110929](https://europe1.discourse-cdn.com/n8n/original/3X/9/c/9c1b3ac4dd943d613d480e55e32e98221bf3e72d.png)
> 
> ![Capture d'écran 2026-04-15 110949](https://europe1.discourse-cdn.com/n8n/original/3X/e/f/ef8371c185cc6d1f5a3e1985faae32bc5e182bea.png)
> 
> ![Capture d'écran 2026-04-15 111247](https://europe1.discourse-cdn.com/n8n/original/3X/4/c/4c2b0ecb5adfa120b8246367d28b888c6e6a2cbf.png)
> 
> ![Capture d'écran 2026-04-15 111450](https://europe1.discourse-cdn.com/n8n/original/3X/7/b/7b1492a8feb817040968e34b8a2547a9265e887f.png)

## **n8n install on premise**

- **n8n EXECUTIONS\_PROCESS setting (default)**
- **Running n8n via Docker**
- **Operating system: debian**

---

<div class="post-metadata">

**Author:** ![tamy.santos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tamy.santos/32/153776_2.png) [@tamy.santos](https://community.n8n.io/u/tamy.santos)\
**Post date:** [April 15, 2026, 12:52pm UTC](https://community.n8n.io/t/issue-with-node-when-chat-message-received/288123/2 "2026-04-15T12:52:13Z")

</div>

welcome to the n8n community @ungelast  
I would first fix the instance’s public editor/webhook URL settings (N8N\_HOST, N8N\_PROTOCOL, and, if applicable, WEBHOOK\_URL plus N8N\_PROXY\_HOPS=1) and make sure the browser can reach that public URL from the VM setup, because the Chat Trigger UI posts back to n8n over the browser-facing endpoint and a wrong/self-local URL commonly shows up as Chat API error: Failed to fetch in self-hosted Docker installs.

---

<div class="post-metadata">

**Author:** ![Anshul\_Namdev](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anshul_namdev/32/178229_2.png) [@Anshul\_Namdev](https://community.n8n.io/u/Anshul_Namdev)\
**Post date:** [April 15, 2026, 12:55pm UTC](https://community.n8n.io/t/issue-with-node-when-chat-message-received/288123/3 "2026-04-15T12:55:32Z")

</div>

Hi @ungelast Welcome!  
Consider upgrading your n8n to the latest 2.x.x version, and then let us know if this issue still persists.

---

<div class="post-metadata">

**Author:** ![dima\_automation](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/dima_automation/32/169331_2.png) [@dima\_automation](https://community.n8n.io/u/dima_automation)\
**Post date:** [April 15, 2026, 1:37pm UTC](https://community.n8n.io/t/issue-with-node-when-chat-message-received/288123/4 "2026-04-15T13:37:59Z")

</div>

this is almost always a networking/URL config issue with docker. the chat node needs to call back to your n8n instance from the browser, and if the URL isn’t set correctly it can’t reach it.  
check your WEBHOOK\_URL and N8N\_EDITOR\_BASE\_URL environment variables in your docker config. they need to be set to the URL that your browser can actually reach not localhost inside the container, but the actual IP or domain you’re using to access n8n. if you’re accessing it via something like [http://192.168.1.50:5678](http://192.168.1.50:5678), both those vars should be set to that.

also make sure your docker port mapping is correct for the webhook port, not just the editor port. the chat node uses the webhook endpoint under the hood so if that port isn’t exposed or mapped properly you’ll get exactly this “failed to fetch” error.  
quick test open your browser console, look at what URL the chat is trying to reach when you send a message. if it’s hitting localhost or some internal docker IP, that’s your problem right there.

---

<div class="post-metadata">

**Author:** ![ungelast](https://avatars.discourse-cdn.com/v4/letter/u/87869e/32.png) [@ungelast](https://community.n8n.io/u/ungelast)\
**Post date:** [April 15, 2026, 1:50pm UTC](https://community.n8n.io/t/issue-with-node-when-chat-message-received/288123/5 "2026-04-15T13:50:58Z")

</div>

Thank you very much just by defining the N8N\_HOST with the local IP did solve my problem.

---

<div class="post-metadata">

**Author:** ![dima\_automation](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/dima_automation/32/169331_2.png) [@dima\_automation](https://community.n8n.io/u/dima_automation)\
**Post date:** [April 15, 2026, 2:08pm UTC](https://community.n8n.io/t/issue-with-node-when-chat-message-received/288123/6 "2026-04-15T14:08:07Z")

</div>

Awesome, glad that fixed it! Docker networking with n8n can be super confusing the first time you set it up. Good luck with the rest of your build

---

<div class="post-metadata">

**Author:** ![Blessing](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/blessing/32/60193_2.png) [@Blessing](https://community.n8n.io/u/Blessing)\
**Post date:** [April 16, 2026, 12:21am UTC](https://community.n8n.io/t/issue-with-node-when-chat-message-received/288123/8 "2026-04-16T00:21:25Z")

</div>

ungelast, your setup looks fine and Ollama is working, so this is not a model issue

The error “Failed to fetch” is coming from the chat UI, not from your workflow. It means the browser cannot reach the n8n backend when using Test Chat. That’s why it works when you click “Execute workflow”, but fails in chat mode.

Since you’re running n8n in Docker on a VM, this is most likely a URL or port mismatch. The chat UI is trying to call the backend using a URL that is not accessible from your browser.

What you should do is make sure n8n is exposed correctly and using the right public URL. In your setup, set:

N8N\_HOST=192.168.1.65

N8N\_PORT=5678

N8N\_PROTOCOL=http

WEBHOOK\_URL=[http://192.168.1.65:5678/](http://192.168.1.65:5678/)

Also make sure Docker is exposing the port:

-p 5678:5678

Then open n8n in your browser using:

[http://192.168.1.65:5678](http://192.168.1.65:5678)

(not localhost)

After that, try Test Chat again

This issue happens because the chat feature depends on the browser calling the backend API, and if the URL is wrong or not reachable, it fails with “Failed to fetch” even though everything else is working

If it still fails, check your browser console (F12 → Network) and you will see the request that is failing, that will confirm the exact cause

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [April 23, 2026, 12:21am UTC](https://community.n8n.io/t/issue-with-node-when-chat-message-received/288123/9 "2026-04-23T00:21:49Z")

</div>

Closed on April 23, 2026, 12:21am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
