SSLError意外的EOF-Python 2.7

时间:2019-02-14 18:52:21

标签: python ssl

SSLError意外的EOF-py 2.7间歇性问题

line 76, in use_ap_to_fire#012    self.dummy.url, json=payload, 
timeout=self.timeout#012  File "/usr/local/lib/python2.7/dist- 
packages/requests/sessions.py", 
line 559, in post#012    return self.request('POST', url, data=data, 
json=json, **kwargs)#012  File "/usr/local/lib/python2.7/dist- 
packages/requests/sessions.py", 
line 512, in request#012    resp = self.send(prep, 
**send_kwargs)#012  File "/usr/local/lib/python2.7/dist- 
packages/raven/breadcrumbs.py", 
line 341, in send#012    resp = real_send(self, request, *args, 
**kwargs)#012  File "/usr/local/lib/python2.7/dist- 
packages/requests/sessions.py", 
line 622, in send#012    r = adapter.send(request, **kwargs)#012  
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", 
line 511, in send#012    raise SSLError(e, 
request=request)#012SSLError: HTTPSConnectionPool(host='somedns', 
port=443): Max retries exceeded with url: /test (Caused by 
SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected 
EOF')",),))

我偶尔会在使用py 2.7命中服务时看到上述异常。我是python以及ssl的新手。我对如何调查这个问题一无所知。

0 个答案:

没有答案