Long chat responses time out

Describe the problem/error/question

Any chat response that takes longer than 100 seconds is never returned to the chat (in hosted chat) and if I test the webhook version, the request returns a 524 error after exactly 100 seconds. I can see in the execution log that the request does return successfully after ~3 minutes but the web request has long timed out at that point.

What is the error message (if any)?

524 Timeout

Please share your workflow

It’s an AI agent with chat node. Lots of tools connected. Requests generally take about 3 minutes to finish.

Share the output returned by the last node

The output is exactly what you would expect, it’s just not returned to the requester in webhook or hosted chat mode.

Information on your n8n setup

  • n8n version: [email protected] on Cloud w/ paid plan
  • Database (default: SQLite): cloud
  • n8n EXECUTIONS_PROCESS setting (default: own, main): cloud
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system: cloud

Please go to your workflow settings:

See if you have enabled a limit to the workflow timeout. This should be disabled.

Yeah that’s already disabled. The workflow itself doesn’t time out. It completes its work, but it appears that some request that the chat UI is making must time out and then it never receives the result back from the workflow.

I am able to enter the execution history to see the result that should have been returned to the chat.

Are you able to test, using the chat trigger, inside the editor and still see the same issue?

Or does it work when testing?