-
Notifications
You must be signed in to change notification settings - Fork 673
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
S3:GetObject - No Supported Checksum when using IfNoneMatch (ETag) #3024
Comments
This warning appeared to start just firing randomly after we upgraded to the latest version of aws-sdk-go-v2 and called GetObject as well -- this strikes me as a regression since we didn't see this before -- agree that it's not entirely clear what this error means from the docs. Seems like this might have something to do with the aws-sdk-go-v2 not supporting newer checksum algorithms that S3 supports? |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Acknowledgements
go get -u github.com/aws/aws-sdk-go-v2/...
)Related to this but appears to be enabled by default now: #1606
Describe the bug
When calling S3 GetObject and using the IfNoneMatch (for ETag caching) the SDK logs a warn message:
If you remove the
IfNoneMatch
and the object is actually fetched, the WARN log is not printed since the checksum validation is performed properly.Regression Issue
Expected Behavior
The log should not be printed in cases where the object is not actually fetched.
Current Behavior
Prints the log when an object is not fetched due to
IfNoneMatch
(Not Modified). I haven't tested other ways to prevent the actual object fetch, but I suspect the same issue occurs with those.Reproduction Steps
Here's a simple program to demonstrate:
Possible Solution
No response
Additional Information/Context
I can work around with this, but it's annoying to have to do this:
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2 v1.36.2
github.com/aws/aws-sdk-go-v2/config v1.29.7
github.com/aws/aws-sdk-go-v2/service/s3 v1.77.1
github.com/aws/smithy-go v1.22.2
Compiler and Version used
go version go1.23.6 linux/amd64
Operating System and version
AL2 5.10.234-205.895.amzn2int.x86_64
The text was updated successfully, but these errors were encountered: