I am trying to download a binary file from an AWS S3 bucket using Amazon's new command-line interface. However, the tool responds with an error message.
$ aws s3 get-object --bucket myBucketName --key myFileName
<requests.packages.urllib3.response.HTTPResponse object at 0x1e61710> is not JSON serializable
Specifying text output format, gives the object's metadata, but again not the actual data.
$ aws --output text get-object --bucket myBucketName --key myFileName
<requests.packages.urllib3.response.HTTPResponse object at 0x298f710> Fri, 05 Apr 2013 18:11:47 GMT bytes application/x-rpm 310000
The tests in the tool's source code distribution don't seem to exercise this functionality.
It turns out that the behaviour was due to a bug, which has since been fixed.