ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)
I gather that the above message means the requested resource uses a self-signed cert. I’ve run this code successfully on a daily basis for months and haven’t yet encountered this error. Can you provide any insight (heh) on whether the certificate configurations may be causing this?
That’s frustrating By any chance are you connected on a VPN or through a proxy when you run the script? If so, does it also happen when you are connecting directly to the internet instead?
Ah yes, I am connecting through a proxy, which my traffic is newly routed through. When the proxy was temporarily disabled yesterday the connection worked again. The proxy is back on this morning, so I am guessing that is related to this issue.
Yeah, it appears that would be the case. You’d need to check with the networking team to see if there’s any packet inspection happening that could be causing the cert validation to fail. Perhaps they can put an exclusion in place for that endpoint.