I'm using the AWSSDK.S3 for .NET (v4.0.9.1) in my app. For my tests I run minio in a docker container. I know this worked in the past but with an update to the current versions of the SDK and the docker image I get this exception
Amazon.S3.AmazonS3Exception: The provided 'x-amz-content-sha256' header does not match what was computed.
when I try to upload a file via one of the extension methods from the SDK
IAmazonS3 s3 = ...;
await s3.UploadObjectFromStreamAsync(
bucketName,
objectKey,
stream,
new Dictionary<string, object>(),
cancellationToken);
I tried to turn off the checksum validation via the AmazonS3Config but that did not solve the problem.
Any ideas what I'm missing? Since this is for tests only I don't care all that much if a solution is potentially "dangerous" and should not be applied in production code.