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

operation error SQS: ReceiveMessage, get identity: get credentials Failed #2449

Closed
berlin-mfv opened this issue Jan 12, 2024 · 6 comments
Closed
Assignees
Labels
compatibility Issues with SDK, Go language version, or platform compatibility.

Comments

@berlin-mfv
Copy link

berlin-mfv commented Jan 12, 2024

Describe the bug

I just updated sdk version like belows:

github.com/aws/aws-sdk-go-v2 v1.24.0 // indirect. --> 
github.com/aws/aws-sdk-go-v2 v1.24.1 // indirect
github.com/aws/aws-sdk-go-v2/service/sqs v1.29.5 --->
github.com/aws/aws-sdk-go-v2/service/sqs v1.29.7	

Then my application got error message:
operation error SQS: ReceiveMessage, get identity: get credentials: failed to refresh cached credentials, failed to retrieve credentials, not found, Signing

Expected Behavior

My application running normally without any error message from AWS sdk.

Current Behavior

Then my application got error message:
operation error SQS: ReceiveMessage, get identity: get credentials: failed to refresh cached credentials, failed to retrieve credentials, not found, Signing

Reproduction Steps

I just updated sdk version like belows:

github.com/aws/aws-sdk-go-v2 v1.24.0 // indirect. --> 
github.com/aws/aws-sdk-go-v2 v1.24.1 // indirect
github.com/aws/aws-sdk-go-v2/service/sqs v1.29.5 --->
github.com/aws/aws-sdk-go-v2/service/sqs v1.29.7	

Possible Solution

No response

Additional Information/Context

No response

AWS Go SDK V2 Module Versions Used

github.com/aws/aws-sdk-go-v2/service/sqs v1.29.7
github.com/aws/aws-sdk-go-v2 v1.24.1

Compiler and Version used

1.21.3

Operating System and version

Linux AMD

@berlin-mfv berlin-mfv added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 12, 2024
@RanVaknin RanVaknin self-assigned this Jan 12, 2024
@RanVaknin
Copy link
Contributor

Hi @berlin-mfv ,

The error you are getting is when the credential chain cannot find a valid source of credentials. Can you tell me which method of setting credentials are you using?

Thanks,
Ran~

@RanVaknin RanVaknin added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Jan 12, 2024
@ghuang0570
Copy link

@RanVaknin we hit the same issue with 1.24.1 on IMDS and I created the client with default settings:

awscfg, err := config.LoadDefaultConfig(ctx)
// err checking

cs := &ClientSet{
    IMDS:          imds.NewFromConfig(awscfg),
}

cs.IMDS.GetMetadata(...) // this will fail with:  not found, Signing

@lucix-aws
Copy link
Contributor

Likely the same type of module incompatibility issue as seen in #2370.

Ensure all your modules under aws-sdk-go-v2 are up-to-date (including indirects):

go get -u "github.com/aws/aws-sdk-go-v2/..."

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jan 13, 2024
@lucix-aws lucix-aws added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jan 13, 2024
Copy link

This issue has not received a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Jan 15, 2024
@lucix-aws lucix-aws added guidance Question that needs advice or information. and removed bug This issue is a bug. p2 This is a standard priority issue labels Jan 16, 2024
@kuzuha
Copy link

kuzuha commented Jan 17, 2024

We hit the same issue in github.com/aws/aws-sdk-go-v2/service/eventbridge

ac, err := defaultConfig, err = config.LoadDefaultConfig(
	context.Background(),
	config.WithRegion("ap-northeast-1"),
	config.WithSharedConfigProfile("our-sso-profile"),
)
if err != nil {
	panic(err)
}
ec := eventbridge.NewFromConfig(ac)
_, err = ec.PutEvents(ctx, &eventbridge.PutEventsInput{
	Entries: reqs, // reqs []types.PutEventsRequestEntry
})

In github.com/aws/aws-sdk-go-v2 v1.24.1, it returns same error.
After running go get github.com/aws/aws-sdk-go-v2@v1.24.0, it works well.

@lucix-aws lucix-aws removed response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jan 17, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@lucix-aws lucix-aws added compatibility Issues with SDK, Go language version, or platform compatibility. and removed guidance Question that needs advice or information. labels Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Issues with SDK, Go language version, or platform compatibility.
Projects
None yet
Development

No branches or pull requests

5 participants