SSLCertVerificationError
fayzull0h opened this issue · 2 comments
fayzull0h commented
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
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
I got it working now thank you so much brother. Jazakallah khair