aws-doc-sdk-examples
aws-doc-sdk-examples copied to clipboard
net472 - AmazonClientException: 'Expected hash not equal to calculated hash' on GetObject()
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