Hello <@U021J8TU753>, I am trying to create the se...
# prefect-cloud
l
Hello @Prefect, I am trying to create the service using. I am using python requests and running it in dokcer. I am getting this error. Could you please throw some light on this? :HTTPSConnectionPool(host='api.prefect.cloud', port=443): Max retries exceeded with url: /api/accounts/{account_id}/bots/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL : CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))
c
That sounds to me like a local issue within your network. Does your network use a proxy?
l
no
It works fine when I run it locally. However, I am getting error when I run it with docker
r
It looks like your Docker image is missing its CA certificates, or for some reason Python just can't find them. You could try setting an env variable like so:
Copy code
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
That works on Ubuntu, but other distros might work it as well. You could also try running `update-ca-certificates inside your container to see if that makes a difference
l
Thank you. After exporting the ssl_cert_file, it is working.