@Muhammad Hassan Thanks for the question, The error you’re encountering, SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))
, typically occurs when the SSL certificate verification fails. This can happen if the certificate is self-signed, not trusted by a Certificate Authority, or if there’s an issue with the client’s certificate chain.
Here are a few potential solutions:
- Proxy Issue: If you’re behind a proxy, it might be causing this issue. You might need to configure your environment to properly use the proxy.
- Certificate Issue: The error message suggests that there might be a self-signed certificate in the certificate chain. You might need to add this self-signed certificate to your trusted certificates.