firemail

标题: python常见网络错误 [打印本页]

作者: java    时间: 2018-3-27 17:11
标题: python常见网络错误
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)
复制代码





欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3