Skip to content
Advertisement

SSL error only in python command window with apify request

I am trying to use endpoint from apify.com. When I run my request in web browser with token everything is fine but if I run my request via requests library from python console I am getting following error:

SSLError: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: /endpoint?token=token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1131)')))

Moreover if I set verify = False in my request than request is working. Does anyone have an idea what can be wrong? Thanks in advance

Advertisement

Answer

Solution was to install internal company SSL package for managing SSL connection from python. There was a recent change.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement