Pycharm Fiddler Requests https in _create raise ValueError("check_hostname requires server_hostname
时间:2021-04-07 20:20:44
收藏:0
阅读:670
原文:https://www.cnblogs.com/levia/p/14628128.html
评论(0)
打开Fiddler, 开启抓取https, 在PyCharm中使用requests 发送https请求, 遇到 in _create raise ValueError("check_hostname requires server_hostname 错误.
在各种尝试后, 通过 https://www.cnblogs.com/1fengchen1/p/14545388.html 文中的方案解决问题.
问题原因
urllib3的1.26.4版本存在bug, 在cmd查看我本机的urllib3 的确是这个版本.
解决办法
urllib3降低版本:urllib3==1.25.7
操作步骤: