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
where role_name is a instance_profile that does not exist.
I get the following traceback occasionally (but not always):
Traceback (most recent call last):
...
File "/path/to/util.py", line 332, in iam_instance_profile_exists
profile.load()
File "/home/wt/.virtualenvs/sf/local/lib/python2.7/site-packages/boto3/resources/factory.py", line 483, in do_action
response = action(self, *args, **kwargs)
File "/home/wt/.virtualenvs/sf/local/lib/python2.7/site-packages/boto3/resources/action.py", line 83, in __call__
response = getattr(parent.meta.client, operation_name)(**params)
File "/home/wt/.virtualenvs/sf/local/lib/python2.7/site-packages/botocore/client.py", line 228, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/wt/.virtualenvs/sf/local/lib/python2.7/site-packages/botocore/client.py", line 481, in _make_api_call
operation_model, request_dict)
File "/home/wt/.virtualenvs/sf/local/lib/python2.7/site-packages/botocore/endpoint.py", line 117, in make_request
return self._send_request(request_dict, operation_model)
File "/home/wt/.virtualenvs/sf/local/lib/python2.7/site-packages/botocore/endpoint.py", line 157, in _send_request
request, operation_model, attempts)
File "/home/wt/.virtualenvs/sf/local/lib/python2.7/site-packages/botocore/endpoint.py", line 203, in _get_response
parser.parse(response_dict, operation_model.output_shape)),
File "/home/wt/.virtualenvs/sf/local/lib/python2.7/site-packages/botocore/parsers.py", line 209, in parse
parsed = self._do_error_parse(response, shape)
File "/home/wt/.virtualenvs/sf/local/lib/python2.7/site-packages/botocore/parsers.py", line 433, in _do_error_parse
root = self._parse_xml_string_to_dom(xml_contents)
File "/home/wt/.virtualenvs/sf/local/lib/python2.7/site-packages/botocore/parsers.py", line 385, in _parse_xml_string_to_dom
"invalid XML received:\n%s" % (e, xml_string))
botocore.parsers.ResponseParserError: Unable to parse response (no element found: line 1, column 0), invalid XML received:
However, I can immediately run the same script again and not get that exception. I expect to get something similar to the following exception:
...
botocore.exceptions.ClientError: An error occurred (NoSuchEntity) when calling the GetInstanceProfile operation: Instance Profile some-instance-profile cannot be found.
Do you have any idea what's going on or how I can work around it?
The text was updated successfully, but these errors were encountered:
jamesls
added a commit
to jamesls/botocore
that referenced
this issue
Mar 30, 2016
I have the following code
where role_name is a instance_profile that does not exist.
I get the following traceback occasionally (but not always):
However, I can immediately run the same script again and not get that exception. I expect to get something similar to the following exception:
Do you have any idea what's going on or how I can work around it?
The text was updated successfully, but these errors were encountered: