我们正在使用以下版本的Boto来编写SQS -
我们有以下 API 可以从多个线程调用 -
- boto3==1.7.16
- botocore==1.10.16
NoCredentialsError
无法定位凭据。
File "botocore/client.py", line 317, in _api_call
return self._make_api_call(operation_name, kwargs)
File "botocore/client.py", line 602, in _make_api_call
operation_model, request_dict)
File "botocore/endpoint.py", line 143, in make_request
return self._send_request(request_dict, operation_model)
File "botocore/endpoint.py", line 168, in _send_request
request = self.create_request(request_dict, operation_model)
File "botocore/endpoint.py", line 152, in create_request
operation_name=operation_model.name)
File "botocore/hooks.py", line 227, in emit
return self._emit(event_name, kwargs)
File "botocore/hooks.py", line 210, in _emit
response = handler(**kwargs)
File "botocore/signers.py", line 90, in handler
return self.sign(operation_name, request)
File "botocore/signers.py", line 154, in sign
auth.add_auth(request)
File "botocore/auth.py", line 352, in add_auth
raise NoCredentialsError
我们有以下 API 可以从多个线程调用 -
def client(self):
if not self._client:
self._client = boto3.client('sqs', self.region)
return self._client
.aws/credentials
文件传递?如果这是间歇性的问题,可能是网络错误,你只需要再试一次。 - undefined