Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSLCertVerificationError #42

Open
fayzull0h opened this issue Jan 6, 2023 · 2 comments
Open

SSLCertVerificationError #42

fayzull0h opened this issue Jan 6, 2023 · 2 comments

Comments

@fayzull0h
Copy link

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
Copy link
Owner

fawazahmed0 commented Jan 6, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants