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.

  • 1
    Thanks for posting. It's a known bug - you obviously know it by now since you're the one that posted it :) anyway, if anyone needs an update check here: github.com/aws/aws-cli/issues/86 anyone know an alternative or workaround?
    – user170224
    Apr 18, 2013 at 20:00
  • You can obviously download the fixed version from github.com/aws/aws-cli Apr 19, 2013 at 20:24
  • It looks like the github bug was closed. Would you add an answer here and then accept it so this question doesn't hang around unanswered forever.
    – asciiphil
    Dec 20, 2013 at 22:11

1 Answer 1


It turns out that the behaviour was due to a bug, which has since been fixed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .