-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aiohttp.client_exceptions.ClientConnectorError Cannot connect to host xxx ssl:None [None] #3672
Comments
GitMate.io thinks the contributor most likely able to help you is @asvetlov. Possibly related issues are #3038 (aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host www.googleapis.com:443 ssl:False [Too many open files]), #3171 (ClientConnectorError: Cannot connect to host python.org:80 ssl:None [Network is unreachable]), #1376 (ClientOSError when trying to connect to certain hosts), #510 (Empty host crashes aiohttp), and #58 (aiohttp.HttpClient). |
It seems to be openssl issue, most probabily your openssl is not compiled to support weak ciphers, i ran cipherscan tool on www.mdnkids.com and here are supported ciphers
You can run command to see ciphers supported by your openssl version, I haven't tried this solution because it would require me to rebuild python so, you can try if you want
|
|
well, its definitely the issue with your openssl not supporting weak ciphers Can you please run following command in terminal
and this
Now if your openssl doesn't support weak ciphers you will have to rebuild python with openssl |
I can't run command in terminal with
|
Hmm, RC4 Cipher is missing, well if you really want to send http requests from python to www.mdnkids.com, you can try building openssl with weak ciphers on WSL and afterwards build python3, |
ok ,thx. I probably know about this. |
where i add this line of code? |
Like this:
Or this:
|
it seems that a request like this
will not work even if ssl=False
a curl request seems to be working fine
|
We can't test if you don't provide the server to test against. But, ssl=False only relaxes a couple of settings, if you want something significantly more insecure (I'm not sure exactly what is failing), then you can provide your own SSLContext: https://docs.aiohttp.org/en/stable/client_advanced.html#ssl-control-for-tcp-sockets |
I realized that I am making requests to a 2005 web server named Boa. The device i'm trying to reach is an embedded system and I doubt the vendor will ever change anything on it. Moreover I'm using home assistant so my options are a bit limited and i can't create a ssl context. |
Probably an issue/feature request for homeassistant then. @bdraco |
My Code
Your environment
The text was updated successfully, but these errors were encountered: