Discussions

Ask a Question
Back to All

error: SSLError: HTTPSConnectionPool

Hi,

I did not understand why I got this error trying to get data from modo API.

The code did work on Spyder for first 2-3 times.

But then started throwing this error

SSLError: HTTPSConnectionPool(host='api.modoenergy.com', port=443): Max retries exceeded with url: [triedfor different urls] (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))