requests.exceptions.SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol

后端 未结 2 1282
春和景丽
春和景丽 2021-01-16 17:31

I have tried everything on this q&a to solve it but I still receive that error.

My latest attempt is based on Lukasa\'s comment and my code looks like this:

2条回答
  •  自闭症患者
    2021-01-16 18:13

    In all of the versions of Requests on PyPI there is no support for requesting HTTPS sites over a proxy since there is no support for the CONNECT verb. Our pre-release branch for 2.0 has this support and it works on every proxy I have tried. If you wish to check that out and try it with this, then you won't need the custom adapter either.

    Otherwise, you will have to wait until we release 2.0

提交回复
热议问题