why trigger the SysCallError(10054,"WSAFECONNRESET") and how to slove it

lei.cheng
lei.cheng Explorer

File "D:\ProgramData\Python\Anaconda2\lib\site-packages\requests\adapters.py", line 512, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: ("bad handshake: SysCallError(10054, 'WSAECONNRESET')",)

Best Answer

  • Christiaan Meihsl
    Answer ✓

    @lei.cheng, can you give us a bit more detail as to the context, maybe post your code ?

    This error can be due to many things. As a first suggestion, in case you are using an old version of Python, I suggest you upgrade to Python 2.7.9 or later, because they improved the SSL capabilities, see PEP 466.