
proxies = {'http': 'http://127.0.0.1:7890', 'https': 'http://127.0.0.1:7890'} # 手动设置代理正常 respOnse= requests.get('https://api.telegram.org', timeout=5, proxies=proxies) # 异常 respOnse= requests.get('https://api.telegram.org', timeout=5) print(response.text) 1 ysc3839 2022-01-10 20:36:48 +08:00 via Android 绝大多数命令行软件不会使用系统的代理设置,只会读取 http(s)_proxy 等环境变量。 |
2 Tumblr 2022-01-10 20:51:46 +08:00 netsh winhttp show proxy 看看有没有 proxy 设置显示出来呢。 |
3 beeeeeeat 2022-01-10 23:41:33 +08:00 via iPhone 是不是 urllib3 的问题,更到 1.26 后有 SSL 异常 |
4 xiyuesaves 2022-01-11 08:50:30 +08:00 用的 clash 的话试试 TUN 模式吧 |
5 fangwenxue OP @beeeeeeat 确实,requests 降级后正常了 |