8000 SSLCertVerificationError · Issue #42 · fawazahmed0/quran-api · GitHub
[go: up one dir, main page]

Skip to content

SSLCertVerificationError #42

Open
Open

Description

@fayzull0h

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?

Activity

  1. fawazahmed0 commented on Jan 6, 2023

    @fawazahmed0
    Owner

    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)
  2. fayzull0h commented on Jan 7, 2023

    @fayzull0h
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0