[Python] Discord bot runs perfectly from my laptop but encounters an error when run from server

Discussão em 'Python' iniciado por Stack, Setembro 10, 2025.

  1. Stack

    Stack Membro Participativo

    So, I had recently built a bot and it works perfectly for me but when I ran it on the server I rented online I had encountered this error. Discord blocks me with error http:403 and my terminal says this:

    wrap_create_connection
    raise ClientConnectorCertificateError(req.connection_key, exc) from exc
    aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discord.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')]


    It is much bigger in reality(I mean the traceback) but I summed the issue up the best I could. What's also interesting that upon an attempt to login in discord WEB from that same server, I was passing captcha putting the 2fa and it still didn't let me in but also didn't send me no error pop-up. I tried fixing the certificates but it didn't help. I also run telegram bots from that same server and they work just fine so I suppose that's discord's side issue.

    Continue reading...

Compartilhe esta Página