Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when retrieving credentials from container-role: #3353

Closed
1 task done
wills721 opened this issue Jan 25, 2025 · 0 comments
Closed
1 task done

Error when retrieving credentials from container-role: #3353

wills721 opened this issue Jan 25, 2025 · 0 comments
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

Comments

@wills721
Copy link

wills721 commented Jan 25, 2025

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

  • Select this option if this issue appears to be a regression.

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

@wills721 wills721 added bug This issue is a confirmed bug. needs-triage This issue or PR still needs to be triaged. labels Jan 25, 2025
@github-actions github-actions bot added the potential-regression Marking this issue as a potential regression to be checked by team member label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant