记录python requests.exceptions.SSLError: HTTPSConnectionPool

628 阅读1分钟

image.png

最近一段时间,身边同事总是会遇到类似这个错,请求https网址时,会报这个异常,然后看同事urllib3版本都是>=1.26.x,然后把urllib3降低到1.25.x就不报错了

pip3 install urllib3=1.25.3

pip3 install urllib3=1.25.11

我也不知道具体啥原因,反正改了就不报错了,有知道原理的大佬可以指点下

遇到类似情况的可以尝试下,反正我身边几个同事降低版本以后就能用了

requests.exceptions.SSLError: HTTPSConnectionPool(host='www.zhipin.com', port=443): Max retries
exceeded with url: /job_detail/?query=%E7%91%9E%E5%B9%B8&city=100010000&industry=&position= 
(Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1091)')))