You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
session=AioSession(profile="role_two")
asyncwithsession.create_client(
"s3", region_name="us-east-1"
) ass3_client:
# any action would work awaits3_client.list_buckets()
...
Traceback:
Refreshing temporary credentials failed during mandatory refresh period.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 265, in _protected_refresh
metadata = await self._refresh_using()
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 319, in fetch_credentials
return await self._get_cached_credentials()
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 329, in _get_cached_credentials
response = await self._get_credentials()
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 354, in _get_credentials
client = await self._create_client()
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 360, in _create_client
frozen_credentials = await self._source_credentials.get_frozen_credentials()
AttributeError: 'coroutine' object has no attribute 'get_frozen_credentials'
2021-02-12 15:54:20,189: ERROR <delete_collected_dings_from_data_aws_account.py:get_uuid> failed to process us_amazon_employees/ding/29797008/6921083684338969232/6921083684338969232.mp4
Traceback (most recent call last):
File "/ddt/app/scripts/delete_collected_dings_from_data_aws_account.py", line 35, in get_uuid
Bucket=bucket, Key=file_name.replace(".mp4", ".json")
File "/usr/local/lib/python3.6/site-packages/aiobotocore/client.py", line 121, in _make_api_call
operation_model, request_dict, request_context)
File "/usr/local/lib/python3.6/site-packages/aiobotocore/client.py", line 140, in _make_request
return await self._endpoint.make_request(operation_model, request_dict)
File "/usr/local/lib/python3.6/site-packages/aiobotocore/endpoint.py", line 84, in _send_request
request = await self.create_request(request_dict, operation_model)
File "/usr/local/lib/python3.6/site-packages/aiobotocore/endpoint.py", line 78, in create_request
operation_name=operation_model.name)
File "/usr/local/lib/python3.6/site-packages/aiobotocore/hooks.py", line 27, in _emit
response = await handler(**kwargs)
File "/usr/local/lib/python3.6/site-packages/aiobotocore/signers.py", line 16, in handler
return await self.sign(operation_name, request)
File "/usr/local/lib/python3.6/site-packages/aiobotocore/signers.py", line 53, in sign
auth = await self.get_auth_instance(**kwargs)
File "/usr/local/lib/python3.6/site-packages/aiobotocore/signers.py", line 75, in get_auth_instance
frozen_credentials = await self._credentials.get_frozen_credentials()
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 290, in get_frozen_credentials
await self._refresh()
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 252, in _refresh
await self._protected_refresh(is_mandatory=is_mandatory_refresh)
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 265, in _protected_refresh
metadata = await self._refresh_using()
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 319, in fetch_credentials
return await self._get_cached_credentials()
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 329, in _get_cached_credentials
response = await self._get_credentials()
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 354, in _get_credentials
client = await self._create_client()
File "/usr/local/lib/python3.6/site-packages/aiobotocore/credentials.py", line 360, in _create_client
frozen_credentials = await self._source_credentials.get_frozen_credentials()
Error reproduced during role chaining. Used an aws config and created
AioSession
with profile of myrole_two
:Sample code:
Traceback:
I tried similar code with botocore and it works:
Same for the latest release (1.2.1).
Pip freeze results:
Environment:
The text was updated successfully, but these errors were encountered: