Report "Not a valid PEM pre boundary" error when I add a model
Self Checks
- [X] This is only for bug report, if you would like to ask a quesion, 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] Pleas do not modify this template :) and fill in all the required fields.
Dify version
0.6.7
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
when I add a model, report "Not a valid PEM pre boundary" error, I try add Zhipu and deepseek model.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The error "Not a valid PEM pre boundary" you're encountering typically indicates an issue with the formatting of SSL/TLS certificates, particularly when a certificate does not have the correct PEM (Privacy Enhanced Mail) headers. This can happen if Dify is trying to establish a secure HTTPS connection and the certificate involved is improperly formatted. A properly formatted PEM certificate should start with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----.
To address this issue, ensure that:
- Any SSL/TLS certificates used by Dify or required for communication with external services over HTTPS are correctly formatted.
- Check Dify's configuration for any SSL/TLS certificate settings, ensuring they are correctly implemented.
- If a network proxy or firewall is part of your setup and uses SSL/TLS certificates, verify their configuration as well.
This error might not be directly related to the process of adding a model in Dify but could stem from how Dify is set up to communicate over HTTPS, either internally or with external services. If you can provide more details about the specific context in which this error occurs, it would help in identifying a more precise solution.
Details
Sources
- 添加deepseek模型时,输入API KEY后保存,显示Not a valid PEM pre boundary错误
- en/tutorials/model-configuration/localai.md
- en/tutorials/model-configuration/README.md
About Dosu This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
I use dify in private net,it don't have domain, so I doesn't use ssl, use http not https
@dosu I use dify in private net,it don't have domain, so I doesn't use ssl, use http not https
@WhiteRoseinShangHai Try checking the "encrypt_public_key" in table "tenants", it seem you got an invalid value.