fawazahmed0 / quran-api

Free Quran API Service with 90+ different languages and 400+ translations
The Unlicense
630 stars 113 forks source link

SSLCertVerificationError #42

Open fayzull0h opened 1 year ago

fayzull0h commented 1 year ago

Hello, when I make a GET Request to your API though urllib.request.urlopen() in python, I get the following error: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)

Do I need some sort of special certification in order to access your API?

fawazahmed0 commented 1 year ago

You can try updating your SSL certificates. pip install certifi

The API doesn't have any SSL related issue, the below code is working fine in my computer:

from urllib.request import urlopen

with urlopen("https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions.json") as response:
    print(response.status)
fayzull0h commented 1 year ago

I got it working now thank you so much brother. Jazakallah khair