在影刀中python模块使用request调用所有 api接口,现在都会发生Max retries exceeded with url错误,更换过proxy,使用session都没有作用,但使用影刀原生的http请求则没有错误,返回正常。这个是生产程序,麻烦尽快回答!!
[错误来源]
chrome-副本 > 主流程 > 行25: 调用模块
chrome-副本 > program > 行63: response = session.get(url, headers=headers, data=payload,proxies=proxy, timeout=150)
执行 response = session.get(url, headers=headers, data=payload,proxies=proxy, timeout=150) 时出错: HTTPSConnectionPool(host='www.some.com', port=443): Max retries exceeded with url: /page?operator=1&from=&to=¤tPage=1&no=&time=3&_=1714227928694 (Caused by ProxyError('Cannot connect to proxy.', OSError(0, 'Error')))
更换过proxy,使用session都没有作用,但使用影刀原生的http请求则没有错误