#๐ SSL Certifi Help
27 messages ยท Page 1 of 1 (latest)
@mortal mural
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiohttp\connector.py", line 1124, in _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:1000)')]
has like 150 more lines of output above it which is all errors (not code errors) works on my other pc but not this new vm
and you are sure that you have the certifi python library installed in the python environment that the script is being started in?
i have it alr installed
tried upgrading it but it says requirement fullfilled
but are you sure it's installed in the same python environment that the script is being started in
yes
on all my scripts it says this
idk why but it works on my normal pc but on this virtual pc it does not
check by adding
import certifi
```at the other imports in your code
after that the script should fail hard on that line if it's not installed correctly in the same execution environment
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\aiohttp\connector.py", line 1124, in _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:1000)')]
same issue
with the import
if you need the source code il send it
if you have that line added it should fail with another message much earlier if there is a problem with the installation of the certifi module
then it wouldn't even mention discord.com in there
il send what it fully says
you also might want to tag this help topic with the Discord bots tag
well, that doesn't really give any clue to what is going wrong other then that the script can't validate the received certificate to be issued by any of the trusted certificate authorities
do you need the code im trying to run?
no, i don't think that is necessary for this
what can i do?
sorry, i don't know ๐คท at this point ๐
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.