Jonathan Bennett

Avoiding x-amz-checksum-mode Errors on Alternative S3 backends

If you are using an alternative S3 backend, like BackBlaze’s B2, you might be getting a Aws::S3::Errors::InvalidArgument error for an unsupported ‘x-amz-checksum-mode’ header. The quick fix is to add a couple environment variables to disable the checksum until B2 supports it:

AWS_REQUEST_CHECKSUM_CALCULATION = WHEN_REQUIRED
AWS_RESPONSE_CHECKSUM_VALIDATION = WHEN_REQUIRED

For my deployments with Kamal, this was added to the variables in env.clear.