Getting SSL error while running OpenPermID library in python

I tried running the following command but got the error:

output,err = opid.lookup("1-4295880893", orient="row", format='dataframe')

err


requests.exceptions.SSLError(urllib3.exceptions.MaxRetryError("HTTPSConnectionPool(host='permid.org', port=443): Max retries exceeded with url: /1-4295880893?format=json-ld&access-token=wUJpJlRwrmXbf4qWe25XFuBtB0GDWPjr (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))"))

Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    Hi @arun.mani,

    What product or service are you using? Can you please provide a link to this OpenPermID library that you are using.

    In general, when Python requests module has SSL error, it is either because:

    1. The Python instance and requests module is old and does not have latest certificate store.

    2. You app is behind a firewall which is re-signing the SSL requests.

Answers