Error when retrieving credentials from container-role: #3353
Labels
bug
This issue is a confirmed bug.
needs-triage
This issue or PR still needs to be triaged.
potential-regression
Marking this issue as a potential regression to be checked by team member
Describe the bug
Thing '[removed]' attributes not found. err=Error when retrieving credentials from container-role: Error retrieving metadata: Received error when attempting to retrieve container metadata: Could not connect to the endpoint URL: "http://localhost:39279/2016-11-01/credentialprovider/"
I am getting this error with 1.356 and 1.35.5
I see some related issues from a year ago with botocore. I'm unsure if this is an AWS greengrass issue or a AWS IAM policy issue or a botocore issue......so trying here???
Any ideas?
Regression Issue
Expected Behavior
Getting attributes from things should work
Current Behavior
Exception thrown
Reproduction Steps
def get_thing_attributes():
"""Gets the attributes of a specific AWS IoT Thing."""
try:
client = boto3.client('iot')
response = client.describe_thing(thingName=thioglobals.myThingName)
return response['attributes']
except Exception as e:
thiologging.log_device_message(f"Thing '{thioglobals.myThingName}' attributes not found. err={str(e)}")
return None
This code throws an exception instead of working
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.35.5 & 6
Environment details (OS name and version, etc.)
Raspian
The text was updated successfully, but these errors were encountered: