Skip to content

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

@cazherosu

Description

@cazherosu

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions