Timeout after 5 Minutes

Did you try this:

http://localhost:11434/v1

??


Ah like that. Now different error.

and also thanks for trying to fix it with me.

and u sure you tried the ollama here with and without v1?

also look here if your setup the same:

Just sharing that i have the same issue. I use a local LLM (LM Studio) on ubuntu at http://llm.lan:1234/v1/. Some of the queries can take a long time to process, if the ai agent doesn’t get a response back within 5 minutes it kills the connection and my LLM sees the client disconnecting. I’ve tried increasing all the timeouts, still has issues. Some of the adjustments help a little like increasing the 60000ms timeout. There are times when I’m going to throw so much data at it that it takes an hour to crunch it, but this really shouldn’t be an issue apart from having tools to mitigate runaway workflows when you need them. Currently I have workflows with chat model calls that are right at 5 minutes and I’m having to use other solutions when n8n should be the champ for what I’m doing. Even my Open WebUI will process all these same prompts/tools.

I’ve also observed that there seem to be behavior differences when using a chat trigger vs a schedule trigger (chat trigger seems to time out faster). I’m a new n8n user so I could well be missing the obvious.

I’m happy to try any solutions, but I would invite n8n to test a case where the chat model takes longer than 5 minutes to respond; see if you hit a hard ceiling of 5 minute timeout.

Hi @Rex_Mundi

FYI, when trying to point to another container on Docker, localhost from n8n wont work as it will try and find that server on the n8n container (localhost). You need to use either a docker compose service name or find the docker internal host IP using the below:

http://host.docker.internal:11434