Replies: 2 comments
-
|
The 10-second connect timeout you're hitting is controlled by the To increase it, add/modify this in the environment configuration for your dify-agent service (e.g., in your There are also related timeout variables you may want to adjust:
Recommended value: Setting Note: These variables configure the connection between the Dify Agent Server and the plugin daemon. The actual timeout for the outbound call to To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
This is a very relevant issue for self-hosted Dify + DeepSeek workflows. Increasing the connection timeout may help with slow handshakes, but if the timeout is caused by provider-side traffic or intermittent API availability, a longer timeout alone may not fully solve it. It can also make workflow runs hang longer under load. For production usage, I’d usually look at three layers:
Curious — are you seeing this mostly during high-traffic periods, or does it happen even with low request volume? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
Hello Dify Team,
We are currently self-hosting Dify via Docker and utilizing the DeepSeek-Chat model for our workflows. Recently, we've been experiencing intermittent timeout issues due to high traffic on the provider's end. The system throws the following error:
Run failed: [models] Server Unavailable Error, HTTPSConnectionPool(host='api.deepseek.com', port=443): Max retries exceeded with url: /chat/completions (Caused by ConnectTimeoutError(<HTTPSConnection(host='api.deepseek.com', ... at port="443)">, 'Connection to api.deepseek.com timed out. (connect timeout=10)'))
I noticed the default connection timeout is set to 10 seconds. I would like to increase this to allow more time for the initial handshake, but I couldn't find specific variables like HTTP_REQUEST_NODE_TIMEOUT or CLIENT_API_TIMEOUT in the default .env template.
Could you please clarify:
What is the exact environment variable I need to add/modify in the .env file to override this 10-second timeout for LLM API connections?
What optimal value do you recommend setting it to for achieving the best stability without causing system hang-ups?
Thank you in advance for your support.
Best regards
Beta Was this translation helpful? Give feedback.
All reactions