You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
0.15.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Description
I’ve deployed the Dify project on my server and tried using the HTTP module in workflows to add content to the knowledge base through an API. While API calls work seamlessly with curl on the server and terminal, identical requests via Dify's HTTP module consistently result in timeouts.
Despite numerous tests and troubleshooting attempts, the problem remains unresolved. Any advice or solutions would be greatly appreciated.
Symptoms Observed
Server-side, Code, and Terminal Tests:
API requests tested with the curl command on the server terminal respond as expected:
Outcome: Successfully returned a response.
HTTP Module in Dify Workflows:
API calls result in timeouts, typically showing extended connection waits before failing.
Additional Notes:
HTTPS and reverse proxy configurations are correctly enabled in the Nginx setup.
Troubleshooting Steps Taken
Validated API Functionality:
API requests using local IP (127.0.0.1) and domain names returned expected results.
Verified the service is bound to 0.0.0.0 and its ports are externally accessible.
Redirection and HTTPS Tests:
Checked for potential issues with HTTP-to-HTTPS redirections.
Used the --location parameter in curl tests, and all redirections completed without issue.
CORS Configuration Review:
Confirmed the following headers are included in the Nginx configuration:
add_header'Access-Control-Allow-Origin''*';
add_header'Access-Control-Allow-Methods''GET, POST, OPTIONS';
add_header'Access-Control-Allow-Headers''Authorization, Content-Type';
This did not resolve the timeout issue on the web front.
Network Environment Validation:
Ensured the client can resolve the domain to the server’s public IP.
Used ping and curl to confirm that domain resolution and connectivity are operational.
Browser Developer Tools:
Network panel logs show no evident 3xx redirections.
The primary issue reported is a connection timeout.
✔️ Expected Behavior
Expected Outcome
The HTTP module in workflows should perform API calls successfully and return proper responses.
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered:
HTTP Request utility does not work (timeout) on a self-hosted environment - This closed issue suggests increasing the GUNICORN_TIMEOUT environment variable to 360 seconds in the docker-compose.yaml file and removing the SSRF_PROXY_HTTP_URL and SSRF_PROXY_HTTPS_URL environment variables from the API container as potential solutions [2].
Additionally, the default timeout for HTTP requests in Dify's workflow module is 15 seconds, which might be causing the issue if the requests take longer than this duration [3].
You might want to try adjusting the timeout settings and checking the environment variables as suggested in the closed issue.
Self Checks
Dify version
0.15.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Description
I’ve deployed the Dify project on my server and tried using the HTTP module in workflows to add content to the knowledge base through an API. While API calls work seamlessly with
curl
on the server and terminal, identical requests via Dify's HTTP module consistently result in timeouts.Despite numerous tests and troubleshooting attempts, the problem remains unresolved. Any advice or solutions would be greatly appreciated.
Symptoms Observed
Server-side, Code, and Terminal Tests:
API requests tested with the
curl
command on the server terminal respond as expected:Outcome: Successfully returned a response.
HTTP Module in Dify Workflows:
Additional Notes:
Troubleshooting Steps Taken
Validated API Functionality:
127.0.0.1
) and domain names returned expected results.0.0.0.0
and its ports are externally accessible.Redirection and HTTPS Tests:
--location
parameter incurl
tests, and all redirections completed without issue.CORS Configuration Review:
Network Environment Validation:
ping
andcurl
to confirm that domain resolution and connectivity are operational.Browser Developer Tools:
✔️ Expected Behavior
Expected Outcome
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: