aws-doc-sdk-examples icon indicating copy to clipboard operation
aws-doc-sdk-examples copied to clipboard

net472 - AmazonClientException: 'Expected hash not equal to calculated hash' on GetObject()

Open cazherosu opened this issue 6 months ago • 0 comments

I'm trying to use a synchronous get-method which would be s3client.GetObject(). It returns a GetObjectResponse but when I try to read it out it throws AmazonClientException: 'Expected hash not equal to calculated hash'. The weird thing is, when I use GetObjectAsync() in net8.0 it works, but when I use the exact same method in net472 the stream is suddenly not readable

https://stackoverflow.com/questions/79654087/s3-amazonclient-getobject-and-getobjectasync-stream-not-readable-in-net472

cazherosu avatar Jun 05 '25 09:06 cazherosu