python 2.7.5版本中的SSL错误

时间:2018-02-06 09:19:05

标签: python amazon-web-services openssl urllib2 boto3

我尝试使用boto3库收集AWS保护职责日志,我能够使用Python 3.6版本获取日志,但在使用Python 2.7.5时却抛出了一些恼人的错误。

错误消息是:

File "C:\Python27\lib\site-packages\botocore\retryhandler.py", line 359, in _check_caught_exception raise caught_exception
botocore.vendored.requests.exceptions.SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol

0 个答案:

没有答案