摘要: 在测试某api时,偶然的发现一个很奇怪的现象 如下: 报的啥错呢: requests.exceptions.ProxyError: HTTPSConnectionPool(host='www.xxxx.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1108: The handshake operation timed out'))) 根据我的经验,看到后面的Max retries exceeded with..... 之类的我都大概知道啥原因,就是请求重试量太多了,可是此时此刻我就一段同步代码啊,后面没内容了,而且也只请求了一次,headers里的Connection也是close而非keep-alive,verfiy也设置的false, 这咋回事呢 阅读全文
posted @ 2021-04-02 15:44 Eeyhan 阅读(22875) 评论(3) 推荐(4) 编辑