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)')))

修改方法:

urlhttps 改为 http 不报错了

requests.exceptions.SSLError: HTTPSConnectionPool Max retries exceeded with url 报错解决方法相关推荐

  1. http请求报错SSLError: HTTPSConnectionPool:Max retries exceeded with url

    1.问题描述: 迭代请求http web服务,中途遇到异常报错: requests.exceptions.SSLError: HTTPSConnectionPool(host='xxx.com', p ...

  2. 【爬虫 | Python】解决‘Requests Max Retries Exceeded With Url‘报错的问题

    [爬虫 | Python]解决'Requests Max Retries Exceeded With Url in Python'报错的问题 背景 解决方案 一.普遍方案 细致方案 一.问题重述 1. ...

  3. Max retries exceeded with URL报错小记

    from hyp mistake: 循环post请求第二遍报错 Max retries exceeded with URL for i in fac:url=******payload = ***** ...

  4. 解决python访问中突发requests.exceptions.ConnectionError:Max retries exceeded with url报错

    解决方法 将: response = requests.get(url=url) # response操作..... 改为: with requests.get(url=url) as respons ...

  5. maximum number (256) of shader keywords exceeded unity的报错解决方法

    https://bitbucket.org/ArtIsDarkGames/shader-keywords-tool-unity3d/src/master/ https://eternity429.wo ...

  6. Max retries exceeded with URL in requests

    爬虫的时候遇到的一个错误 Max retries exceeded with URL in requests requests.exceptions.ConnectionError: HTTPSCon ...

  7. Max retries exceeded with url 解决方案

    目录 问题解决方案 keep alive 与close使用场景 问题解决方案 在上一篇问题解决中:python OSError: [Errno 24] Too many open files | HT ...

  8. Max retries exceeded with url超过rul最大重试次数

    问题:在python下,基于POM+unittest+yaml模式下的webUi自动化时,一条案例对应多条测试数据,运行时报:Max retries exceeded with url 原码: yam ...

  9. 解决requests.exceptions.SSLError: HTTPSConnectionPool(host=xxxxx‘, port=443): Max retries exceeded

    问题描述 使用scrapy框架时报错SSL,于是另起一个文件,使用requests,报错requests.exceptions.SSLError: HTTPSConnectionPool(host=' ...

最新文章

  1. centos7 mysql二进制_centos7+mysql5.7二进制安装
  2. 犀牛导出su文件错误插件错误_安利|一款免费插件blender-for-unrealengine
  3. Go 指针 unsafe.Pointer
  4. 贷款机构如何审核个人征信?
  5. Linux-Android启动之Machine-Init函数
  6. 代码实现:给一个不多于5位的正整数,要求:一、求它是几位数,二、逆序打印出各位数字。...
  7. post多个参数_如何使用Arjun v1.3挖掘HTTP参数
  8. HDOJ2035 人见人爱A^B
  9. vSAN Health Service-物理磁盘运行状况-物理磁盘运行状况检索问题(2149291)
  10. 华为qy2音乐如何转换为mp3_华为手机还有这种骚操作?开启这个功能,让你体验至尊级待遇...
  11. 红米note5解锁教程_红米NOTE5解锁包
  12. python中数组常用的统计方法
  13. 河北农大计算机专业全国排名,2019河北农业大学现代科技学院专业排名
  14. 服务器网站首页被被修改,web服务器被入侵修改内容后如何处理
  15. 60位移动游戏大佬共同发起成立“上方汇”
  16. devise第三方认证插件
  17. 《markdown》语雀导出markdown的图片外链问题
  18. php_curl.dll下载,php_curl.dll,下载,简介,描述,修复,等相关问题一站搞定_DLL之家
  19. golang 学习(二十六)第三方包的下载和安装
  20. 微信和支付宝APP支付使用总结

热门文章

  1. C语言—循环结构的总结
  2. 我是怎么让微信1天加到200个精准粉丝的
  3. linux端口对应服务
  4. 最新版本微信和QQ红包自动领取安装包
  5. 访问学者在美国生活中有哪些风俗禁忌?
  6. vue-cli 打包之后的各种部署问题集中地
  7. jupyterlab 安装
  8. 英语saualpite黝帘石SAUALPITE单词
  9. 问题:Eclipse 提示 The given project is not a virtual component project
  10. 关于计算机的进制转换方法,计算机进制转换方法.doc