An app that is previously been working without issue is now getting the following error when uploading an object to Tigris:
botocore.exceptions.ClientError: An error occurred (MissingContentLength) when calling the PutObject operation: You must provide the Content-Length HTTP header.
I have reproduced the error using this very simple example, which is taken from the Tigris docs:
Same issue here! I am using aws-cli, all was uploading fine until today I noticed this error:
upload failed: checkout/tracker.js to s3://bucket-xxx/checkout/1.1.5/tracker.js
An error occurred (MissingContentLength) when calling the PutObject operation:
You must provide the Content-Length HTTP header
Found the reason! Tigris support responded. Turns out the issue is in the latest version of awscli with the botocore package. I tried downgrading the aws-cli version and it works fine.