Closed WhiteRoseinShangHai closed 5 months ago
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:
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.
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.
Self Checks
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