vaphes/pocketbase

SSL: CERTIFICATE_VERIFY_FAILED for Pocketbase Admin Auth With Password

Closed this issue · 0 comments

pocketbase.utils.ClientResponseError: General request error. Original error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)

I updated certifi package & made sure the https endpoint, email & password is correct.
-> Python Version is 3.10
-> Pocketbase Version is 0.12.1

Code -

        pocketbase = PocketBase(os.environ["POCKETBASE_SERVER"])
        pocketbase.admins.auth_with_password(
            os.environ["POCKETBASE_EMAIL"], 
            os.environ["POCKETBASE_PASSWORD"]
        )