requests.exceptions.SSLError: HTTPSConnectionPool Max retries exceeded with url 报错解决方法
import requests
import jsonheaders = {"Content-Type": "application/json"}
url = 'https://xxx'
d = {"var": [1, 2, 3]}
r = requests.post(url, headers=headers, json=d) # 发get请求
print(r.status_code, r.json())
发现报错:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: certificate has expired (_ssl.c:1131)requests.exceptions.SSLError: HTTPSConnectionPool(host='xxx', port=xxx):
Max retries exceeded with url: /xxx
(Caused by SSLError(SSLCertVerificationError
(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed:
certificate has expired (_ssl.c:1131)')))
修改方法:
把 url
的 https 改为 http
不报错了
requests.exceptions.SSLError: HTTPSConnectionPool Max retries exceeded with url 报错解决方法相关推荐
- http请求报错SSLError: HTTPSConnectionPool:Max retries exceeded with url
1.问题描述: 迭代请求http web服务,中途遇到异常报错: requests.exceptions.SSLError: HTTPSConnectionPool(host='xxx.com', p ...
- 【爬虫 | Python】解决‘Requests Max Retries Exceeded With Url‘报错的问题
[爬虫 | Python]解决'Requests Max Retries Exceeded With Url in Python'报错的问题 背景 解决方案 一.普遍方案 细致方案 一.问题重述 1. ...
- Max retries exceeded with URL报错小记
from hyp mistake: 循环post请求第二遍报错 Max retries exceeded with URL for i in fac:url=******payload = ***** ...
- 解决python访问中突发requests.exceptions.ConnectionError:Max retries exceeded with url报错
解决方法 将: response = requests.get(url=url) # response操作..... 改为: with requests.get(url=url) as respons ...
- maximum number (256) of shader keywords exceeded unity的报错解决方法
https://bitbucket.org/ArtIsDarkGames/shader-keywords-tool-unity3d/src/master/ https://eternity429.wo ...
- Max retries exceeded with URL in requests
爬虫的时候遇到的一个错误 Max retries exceeded with URL in requests requests.exceptions.ConnectionError: HTTPSCon ...
- Max retries exceeded with url 解决方案
目录 问题解决方案 keep alive 与close使用场景 问题解决方案 在上一篇问题解决中:python OSError: [Errno 24] Too many open files | HT ...
- Max retries exceeded with url超过rul最大重试次数
问题:在python下,基于POM+unittest+yaml模式下的webUi自动化时,一条案例对应多条测试数据,运行时报:Max retries exceeded with url 原码: yam ...
- 解决requests.exceptions.SSLError: HTTPSConnectionPool(host=xxxxx‘, port=443): Max retries exceeded
问题描述 使用scrapy框架时报错SSL,于是另起一个文件,使用requests,报错requests.exceptions.SSLError: HTTPSConnectionPool(host=' ...
最新文章
- centos7 mysql二进制_centos7+mysql5.7二进制安装
- 犀牛导出su文件错误插件错误_安利|一款免费插件blender-for-unrealengine
- Go 指针 unsafe.Pointer
- 贷款机构如何审核个人征信?
- Linux-Android启动之Machine-Init函数
- 代码实现:给一个不多于5位的正整数,要求:一、求它是几位数,二、逆序打印出各位数字。...
- post多个参数_如何使用Arjun v1.3挖掘HTTP参数
- HDOJ2035 人见人爱A^B
- vSAN Health Service-物理磁盘运行状况-物理磁盘运行状况检索问题(2149291)
- 华为qy2音乐如何转换为mp3_华为手机还有这种骚操作?开启这个功能,让你体验至尊级待遇...
- 红米note5解锁教程_红米NOTE5解锁包
- python中数组常用的统计方法
- 河北农大计算机专业全国排名,2019河北农业大学现代科技学院专业排名
- 服务器网站首页被被修改,web服务器被入侵修改内容后如何处理
- 60位移动游戏大佬共同发起成立“上方汇”
- devise第三方认证插件
- 《markdown》语雀导出markdown的图片外链问题
- php_curl.dll下载,php_curl.dll,下载,简介,描述,修复,等相关问题一站搞定_DLL之家
- golang 学习(二十六)第三方包的下载和安装
- 微信和支付宝APP支付使用总结