mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
Xinference Request timed out #143
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yumu7777777 on GitHub (Mar 28, 2025).
Self Checks
Dify version
1.1.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When adding the Xinference model, a timeout prompt appears. I can access Xinference normally on the interface. Could you please tell me what the cause is? Dify is deployed on an internal network, and so is Xinference. A policy has been set up between the two servers to ensure connectivity.

✔️ Expected Behavior
Add the model successfully.
❌ Actual Behavior
Request timed out
@dosubot[bot] commented on GitHub (Mar 28, 2025):
There are several similar threads related to timeout issues when using Xinference with Dify:
What is the reason for the request timed out when saving the model? - This discussion is open and suggests checking the timeout settings in the
api/core/tools/custom_tool/tool.pyfile and ensuring network stability. Adjusting the timeout values might help [1].Run failed: [models] Connection Error, HTTPConnectionPool(host='172.26.27.223', port=11434): Read timed out. (read timeout=300) - This open discussion suggests ensuring the Dify container can access the Xinference endpoint by using the host IP address instead of
localhostand checking firewall settings [2].connection error: request error, status_code: 503 - This open discussion also highlights the importance of using the correct IP address and ensuring network connectivity [3].
To resolve your issue, ensure that the Dify container can access the Xinference endpoint by using the host machine's IP address instead of
localhost. Additionally, verify that the network policy between the two servers is correctly configured and that there are no firewall restrictions blocking the connection. Adjusting the timeout settings in the Dify configuration might also help.To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@yumu7777777 commented on GitHub (Mar 28, 2025):
Will Dify access the Internet when adding an offline model?
@dosubot[bot] commented on GitHub (Aug 17, 2025):
Hi, @yumu7777777. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!