Chat Agent not responding

Describe the problem/error/question

I set up the most simple workflow with an AIAgent connecting to either OpenAI or Anthropic (Both show the same behaviour) . Chat window opens and I enter my message, however no response is returned, I get the box with the 3 dots and wait several minutes without success. I close the chat window, stop the chat, get a toast saying workflow completed before it could be stopped, then I start the chat again and only then I see the answer to my previous message. I can reproduce that behaviour consistently with any new message and new start. I am running self hosted behind a web proxy and webhooks in other workflows work perfectly fine if that matters

What is the error message (if any)?

none, see description above

Please share your workflow

image

(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.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: Latest, pulled today
  • Database (default: SQLite): Yes
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu

does anyone have an idea what the root cause might be?

Hey @StefanSonntag,

Can you share the actual workflow? It looks like you are using the Tools agent with no tool which I think expects a tool so it could be worth trying a conversational agent and seeing if that is different.

Hey @Jon , thanks for getting back to me! I have changed the Agent from Tools to Conversational, but it is still the same behaviour, see attached screen recording. The fact that the initial answer about Paris is 3x visible is only because I tested the flow and the windows buffer apparently contained the result of the two runs before. The question about London shows it with a “fresh” question

Video

Hey @StefanSonntag,

I have seen that before, Which reverse proxy are you using for n8n and assuming you do have one is it nginx?

Can you check the browser console while running the chat and see if it shows any errors?

Thanks Jon, yes you are correct, I use nginx. Here’s the video of the browser console https://youtu.be/Psdj_yJ8UXo

Hi StefanSonntag, have you found a solution to your problem? I’m running into exactly the same issue. Thanks!

Replying to my own question here as I managed to solve my issue.
In my case, the culprit was nginx, as I had a binding error on ports 80 and 443, which I figured out by checking nginx error logs. Once I modified my nginx config file, the problem was solved. :slightly_smiling_face:

i hit exactly the same error. could u share exactly which file to modify? i m noob in server config. all the time i been using localhost lol. Thanks

Check your nginx logs and config files (in /etc/nginx/sites-enabled ) to make sure you don’t have any binding errors. The modifications that need to be made will depend on the other websites currently using nginx on your server. ChatGPT or Claude can be helpful in understanding what need to be modified! :wink:

1 Like

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