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关闭了,就能正常发送请求。

相关推荐
小袁拒绝摆烂1 小时前
OpenCV-python灰度变化和直方图修正类型
python·opencv·计算机视觉
Dxy12393102164 小时前
Python 条件语句详解
开发语言·python
龙泉寺天下行走4 小时前
Python 翻译词典小程序
python·oracle·小程序
践行见远5 小时前
django之视图
python·django·drf
love530love6 小时前
Windows避坑部署CosyVoice多语言大语言模型
人工智能·windows·python·语言模型·自然语言处理·pycharm
掘金-我是哪吒7 小时前
分布式微服务系统架构第132集:Python大模型,fastapi项目-Jeskson文档-微服务分布式系统架构
分布式·python·微服务·架构·系统架构
xhdll8 小时前
egpo进行train_egpo训练时,keyvalueError:“replay_sequence_length“
python·egpo
Cchaofan8 小时前
lesson01-PyTorch初见(理论+代码实战)
人工智能·pytorch·python
网络小白不怕黑8 小时前
Python Socket编程:实现简单的客户端-服务器通信
服务器·网络·python
Ronin-Lotus8 小时前
程序代码篇---python获取http界面上按钮或者数据输入
python·http