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

"not found, ResolveEndpointV2" with latest config service modules (v1.25.7 and v1.25.8) #2397

Closed
laraoz opened this issue Nov 29, 2023 · 6 comments
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@laraoz
Copy link

laraoz commented Nov 29, 2023

Describe the bug

I am experiencing a not found, ResolveEndpointV2 error.
This error occurs during the process of trying to decrypt a cyphertext blob using KMS.

config, err := awsconfig.LoadDefaultConfig(context.Background())
if err != nil { ... }
kmsSvc := kms.NewFromConfig(config)
params := &kms.DecryptInput{
	CiphertextBlob: someCipherTextBlob,
}
resp, err := kmsSvc.Decrypt(context.TODO(), params) // <-- resolve error here
if err != nil {
	return ....
}

return ...

Expected Behavior

The KMS Decrypt method is expected to execute without errors.

Current Behavior

When executing the Decrypt method, the following error occurs:

not found, ResolveEndpointV2

Reproduction Steps

Use/Create a cipher text blob ([]byte) payload.
Use the AWS SDK V2 for Go to create an KMS client.
Use the Decrypt method of the KMS client to decrypt the text blob.
Observe the ResolveEndpointV2 error during the execution of the Decrypt call.

Possible Solution

No response

Additional Information/Context

The issue does not occur with previous versions of the SDK, and reverting to an earlier version resolves the issue:

github.com/aws/aws-sdk-go-v2 v1.22.1
github.com/aws/aws-sdk-go-v2/config v1.22.0
github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.10.43
github.com/aws/aws-sdk-go-v2/feature/dynamodb/expression v1.4.71
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.89
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.23.0
github.com/aws/aws-sdk-go-v2/service/glue v1.62.1
github.com/aws/aws-sdk-go-v2/service/s3 v1.40.2

AWS Go SDK V2 Module Versions Used

github.com/aws/aws-sdk-go-v2 v1.23.2
github.com/aws/aws-sdk-go-v2/config v1.25.8
github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.12.5
github.com/aws/aws-sdk-go-v2/feature/dynamodb/expression v1.6.5
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.15.1
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.25.5
github.com/aws/aws-sdk-go-v2/service/glue v1.70.2
github.com/aws/aws-sdk-go-v2/service/s3 v1.46.0

Compiler and Version used

go version go1.21.0 darwin/arm64

Operating System and version

macOS Ventura - Apple M1 Max

@laraoz laraoz added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 29, 2023
@laraoz
Copy link
Author

laraoz commented Nov 29, 2023

related issue #2370

@lucix-aws
Copy link
Contributor

The solution is in that issue's thread -- you have to upgrade every v2 sdk module to the latest version. Closing as duplicate.

@lucix-aws lucix-aws closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2023
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.

@ganesh-singhh
Copy link

Please execute:
go clean -modcache

how... go clean works

Then execute
go mod tidy

!!! Done !!!

@yuseferi
Copy link

you need to update all the AWS SDK-related dependencies and the error will gone.

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

@gams-temark
Copy link

you need to update all the AWS SDK-related dependencies and the error will gone.

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

Thanks so much! I've been stuck on this issue for hours!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

5 participants