I receive this error when I encounter a multi-part upload and I'm
redirecting output to a log:
Problem: KeyError: 'size'
Traceback (most recent call last):
File "/usr/local/bin/s3cmd", line 1804, in <module>
File "/usr/local/bin/s3cmd", line 1745, in main
File "/usr/local/bin/s3cmd", line 309, in cmd_object_put
(unicodise(full_name_orig), uri_final, response["size"],
The command arguments are:
s3cmd put --no-guess-mime-type $file s3://bucket/$file
When run as above, it works as expected. However, I have the command
in a script, and when I send that script's output to a file, I receive
Running the same scrip with "--disable-multipart" added as an argument
to s3cmd completes without error.
Just reporting this as I'm sure it may be an issue for someone else :)