Skip to content

Cannot connect to host cdn-lfs-us-1.hf.co:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')] #94

@larinius

Description

@larinius

Chat CPT managed to fix it suggested "no SSL", it does work. And models downloading. This is ugly fix, the code itself deserves it.

async with aiohttp.ClientSession(loop=asyncio.get_event_loop(), connector=aiohttp.TCPConnector(ssl=False)) as session:
    # existing code with `session`

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