python请求报错::requests.exceptions.ProxyError: HTTPSConnectionPool

在发送网页请求时,发现很久未响应,最后报错:

requests.exceptions.ProxyError: HTTPSConnectionPool(host='svr-6-9009.share.51env.net', port=443): Max retries exceeded with url: /prod-api/getInfo (Caused by ProxyError('Unable to connect to proxy. Your proxy appears to only use HTTP and not HTTPS, try changing your proxy URL to be HTTP. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#https-proxy-error-http-proxy', SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))))

原因:是因为发送请求时开启了fiddler,

解决方法:关闭fiddler,重新发请求。

此外:如果postman发送请求时提示"Could not get any response",则也要去检查是否fiddler开启了,此时把fiddler关闭了,就能正常发送请求。

相关推荐
开发者小天14 分钟前
python中的class类
开发语言·python
idwangzhen23 分钟前
GEO优化系统哪家更专业
python·信息可视化
diediedei41 分钟前
机器学习模型部署:将模型转化为Web API
jvm·数据库·python
m0_5613596743 分钟前
使用Python自动收发邮件
jvm·数据库·python
naruto_lnq1 小时前
用Python批量处理Excel和CSV文件
jvm·数据库·python
b2077211 小时前
Flutter for OpenHarmony 身体健康状况记录App实战 - 提醒设置实现
python·flutter·macos·cocoa·harmonyos
2301_822365031 小时前
数据分析与科学计算
jvm·数据库·python
河北小博博1 小时前
分布式系统稳定性基石:熔断与限流的深度解析(附Python实战)
java·开发语言·python
黄连升1 小时前
Python学习第二天,系统学习基础
python·学习
西红市杰出青年2 小时前
CSS 选择器详细教程:原理、语法、方向/“轴”与实战
css·python