Content-Length error with AWS CLI PutObject on StorageGRID
Applies to
- StorageGRID 11.9
- AWS CLI 1.46.0
Issue
- Content-Length error occurs when running AWS CLI PutObject command on StorageGRID.
- An error occurred (
MissingContentLength) when calling the PutObject operation:You must provide the Content-Length HTTP header. - AWS CLI debug log shows the following headers:
content-encoding: aws-chunked
host: xxxx.xx
x-amz-content-sha256: STREAMING-UNSIGNED-PAYLOAD-TRAILER
x-amz-date: yyymmddtttt
x-amz-decoded-content-length: 5
x-amz-sdk-checksum-algorithm: CRC32
x-amz-trailer: x-amz-checksum-crc32
