我尝试使用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