Skip to content

SSL verification problem #664

@defectivetapp

Description

@defectivetapp

self.async_s.transport = httpx.AsyncHTTPTransport(retries=1)

Problem is very specific and requires multiple other problems, but this line practically ignores verify=False argument and sets it true. That means that if for whatever reason there is problem with environment variables (in my case for example it was referencing empty file, some weird decision by IT department), ssl library trying to create default context will raise ssl.SSLError: [X509: NO_CERTIFICATE_OR_CRL_FOUND] no certificate or crl found (_ssl.c:4146).
I dont understand practical necessity in overwriting async_s.transport with no parameters. This attribute already is being set up in AsyncClient() constructor. After commenting this line out i stopped having this issue, since program doesnt try to setup ssl context, and as far as i know i dont have other problems that were created by it. I wanna know what was reasoning behind creating this line, if there is one, and hope the issue is resolved.
Similar question, tho less important, for line above as of why does it need to remove auth headers.

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