R
RunPod12mo ago
nouman92_

SSLCertVerificationError from custom api

I am trying to create my own api using python but i am having error when job is submitted. Error Type: ClientConnectorCertificateError | Error Message: Cannot connect to host api.runpod.ai:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')] Even using this basic sample throws the same error https://blog.runpod.io/serverless-create-a-basic-api/. is there something missing?
RunPod Blog
Serverless | Create a Custom Basic API
RunPod's Serverless platform allows for the creation of API endpoints that automatically scale to meet demand. The tutorial guides you through creating a basic worker and turning it into an API endpoint on the RunPod serverless platform. For this tutorial, we will create an API endpoint that helps us accomplish
Solution:
This is fixed. although its mentioned in docs that minimum 3.8 lambda is required for runpod python module but i was able to get it running with python 3.11. under 3.11 i get the ssl error . even upgrading the certificate store did not help.
Jump to solution
2 Replies
justin
justin11mo ago
Do u think u can share ur handler.py file and if any dockerfile? Will be helpful to comment in on it Strange error though. Wonder if it persists after deleting and recreating the endpoint https://discord.com/channels/912829806415085598/1194695853026328626/1194998123781685258 This is a very good hello world runpod too that another community member made
Solution
nouman92_
nouman92_11mo ago
This is fixed. although its mentioned in docs that minimum 3.8 lambda is required for runpod python module but i was able to get it running with python 3.11. under 3.11 i get the ssl error . even upgrading the certificate store did not help.
Want results from more Discord servers?
Add your server