w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
python requests ssl error 550

This seems to be an issue with openssl which is what Python's ssl module relies on (and which in turn requests relies on). The way to verify this is by using the openssl s_client command to check this:

~/sandbox/requests (master) openssl s_client -connect
klevas.vu.lt:443
CONNECTED(00000003)
140721982121664:error:140773E8:SSL
routines:SSL23_GET_SERVER_HELLO:reason(1000):s23_clnt.c:741:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 319 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---

That's the same error I see when testing this on python 2.7.

Furthermore, if I test the second url www.kleavs.vu.lt I get this:

~/sandbox/requests (master) openssl s_client -connect
www.klevas.vu.lt:443
connect: Connection refused
connect:errno=111

Which is the same thing I see when I try to request the second URL via requests on either Python 2 or 3.

This is not an issue with requests but similar bugs have been filed: #606 (which is where I pulled the openssl command).

You can attempt to follow the instructions here to determine if a different version of TLS or SSL will fix this for you, but I'm not sure it will help in this case.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.