Certificate error while calling the self hosted llm from local machine #7416
-
|
I have hosted the langfuse in helm and trying to access from local application running on my machine. while using the the observe decorator its looking for certificate and error ing out: Usually when we get this error in request call we can put verify=false. How can I suppress the error here? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
This SSL certificate error is common when using self-signed certs in local or self-hosted setups. The Langfuse backend doesn’t provide a way to bypass SSL verification, so you need to handle this on the client side. If you’re using the Langfuse Python SDK, you can either:
If you’re running Langfuse in Helm and want the backend to trust your self-signed CA, mount your CA cert into the container and set the langfuse:
extraVolumes:
- configMap:
defaultMode: 420
name: company-ca
name: company-ca
extraVolumeMounts:
- mountPath: /etc/ssl/cert.pem
name: company-ca
readOnly: true
subPath: company-ca.pem
additionalEnv:
- name: NODE_EXTRA_CA_CERTS
value: /etc/ssl/cert.pemLet me know if you need a more specific code snippet for your setup. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Even after applying the below code its showing the same certficate error. Any way to fix it? import httpx client = httpx.Client(verify=False) |
Beta Was this translation helpful? Give feedback.
-
|
Here is our documentation page on how to address this: https://langfuse.com/docs/observability/sdk/python/sdk-v3#self-signed-ssl-certificates-self-hosted-langfuse. |
Beta Was this translation helpful? Give feedback.
-
|
@Steffen911 the link is not relevant. I try to use >3 client with both >2 and >3 server, and I get requests.exceptions.SSLError, setting |
Beta Was this translation helpful? Give feedback.
Here is our documentation page on how to address this: https://langfuse.com/docs/observability/sdk/python/sdk-v3#self-signed-ssl-certificates-self-hosted-langfuse.