Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2114|回复: 0
打印 上一主题 下一主题

python常见网络错误

[复制链接]

697

主题

1142

帖子

4086

积分

认证用户组

Rank: 5Rank: 5

积分
4086
跳转到指定楼层
楼主
发表于 2018-3-27 17:11:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1. ssl证书过期
  1. Traceback (most recent call last):
  2.   File "BackGroundAPIHeartbeat.py", line 106, in testApiPushtoAgentOldServerV1
  3.     r = requests.post(self.url + self.typeURL[type], params=params, timeout=self.curTimeOut)
  4.   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 110, in post
  5.     return request('post', url, data=data, json=json, **kwargs)
  6.   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 56, in request
  7.     return session.request(method=method, url=url, **kwargs)
  8.   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request
  9.     resp = self.send(prep, **send_kwargs)
  10.   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
  11.     r = adapter.send(request, **kwargs)
  12.   File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 497, in send
  13.     raise SSLError(e, request=request)
  14. SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-11-22 17:20 , Processed in 0.057521 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表