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

相关推荐
我的xiaodoujiao1 小时前
Django 基础知识详细图文教程 12-Django 模型定义与使用 2
后端·python·django
happylifetree9 小时前
Python09:核心语法-数据存储与运算-字面量
python
心之语歌9 小时前
Tkinter 画布基本梳理
运维·服务器·python
Wx-bishekaifayuan10 小时前
django个性化旅游路线推荐平台49005-计算机课程设计、毕业设计
spring boot·后端·python·django·课程设计·express·旅游
小白快快跑哦11 小时前
python-字符串全解(六):正则表达式-量词
python·正则表达式·字符串
禹凕11 小时前
机器学习之Selenium(Machina Learning about Selenium)
爬虫·python·selenium·测试工具·机器学习
ebiobiz13 小时前
基于 GD32 Embedded Builder (GEB) 与 Nimmake 的 MCU 工程搭建指南
c++·python·单片机·嵌入式硬件·mcu
老歌老听老掉牙13 小时前
穿越时空的物流密码:VRP与VRPTW的深度剖析及实战求解
python·物流·vrp
FYKJ_201013 小时前
django电影推荐系统55066-计算机课程设计、毕业设计
vue.js·spring boot·python·mysql·typescript·spark·django
ShyanZh14 小时前
【Python3基础】13-Python 常用设计模式
开发语言·python·设计模式