(Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)')))
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
1.3.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I installed plugin OpenAI-API-compatible of version 0.0.14 my llm api service was deployed in Deno when i add llm with plugin OpenAI-API-compatible, report the wrong message:
An error occurred during credentials validation: HTTPSConnectionPool(host='xxxx.deno.dev', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)')))
in the dify version 1.2,it work fine!
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
A similar issue was reported in a closed thread regarding SSL errors in Dify's self-hosted Docker setup. The issue was related to SSL handshake errors and was resolved by updating to a newer version of Dify that included specific fixes [1].
For your specific issue with Dify version 1.3.1, here are some steps you can take to troubleshoot and potentially resolve the SSL error:
-
Update Dify: Ensure you are using the latest version of Dify, as updates may include important fixes for SSL-related issues.
-
Environment Variables: If you are using Docker Compose, try unsetting the
HTTP_PROXYandHTTPS_PROXYenvironment variables before running your setup. -
Configuration Adjustments: When connecting to local services, replace 'localhost' with 'host.docker.internal' in your configuration. This can help resolve network-related issues within Docker.
-
SSL Verification: You can configure Dify to bypass SSL certificate verification errors by setting the
HTTP_REQUEST_NODE_SSL_VERIFYconfiguration toFalsein thedify_config. -
Certbot Container: Since Dify version 1.3.1 includes a Certbot container for managing SSL certificates, ensure that it is correctly configured and running to handle SSL connections properly [2].
These steps should help address the SSL error you are encountering. If the issue persists, further investigation into the specific configuration of your Deno deployment and SSL setup may be necessary.
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
i use docker compose and i do not use http proxy
any body who can help me? why?
Have you solved it? I had the same problem configuring xai
no, but sometimes work fine, i don't know why? the remote api service does work fine, when i call it outside dify it work fine
no, but sometimes work fine, i don't know why? the remote api service does work fine, when i call it outside dify it work fine
I figured it out; the solution was to add a proxy to almost all the containers.
no, but sometimes work fine, i don't know why? the remote api service does work fine, when i call it outside dify it work fine
I figured it out; the solution was to add a proxy to almost all the containers.
Hello, can you teach me how to add proxy to the container? I really want to solve this problem, thank you!
no, but sometimes work fine, i don't know why? the remote api service does work fine, when i call it outside dify it work fine
I figured it out; the solution was to add a proxy to almost all the containers.
Hello, can you teach me how to add proxy to the container? I really want to solve this problem, thank you!
Send your docker-compose.yaml file to the AI (I'm using Gemini), and have it add proxy settings to almost every container.
it work fine now when i use v1.4.0
Hi, @pigracing. I'm Dosu, and I'm helping the Dify team manage their backlog and am marking this issue as stale.
Issue Summary:
- You reported an SSL EOF error using the OpenAI-API-compatible plugin v0.0.14 with Dify v1.3.1 in a self-hosted Docker setup.
- The error did not occur in Dify v1.2.
- Troubleshooting suggestions included updating Dify, adjusting Docker network settings, and configuring SSL verification.
- Another user shared that adding proxy settings to containers helped resolve a similar issue.
- You confirmed the issue was resolved after upgrading to Dify v1.4.0.
Next Steps:
- Please confirm if this issue is still relevant with the latest version of Dify.
- If it is, feel free to comment to keep the discussion open; otherwise, I will automatically close this issue in 15 days.
Thank you for your understanding and contribution!