Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
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 '13 at 20:00
    
You can obviously download the fixed version from github.com/aws/aws-cli –  Diomidis Spinellis Apr 19 '13 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 '13 at 22:11
1  
Done, thank you for the suggestion! –  Diomidis Spinellis Dec 24 '13 at 9:42
add comment

1 Answer

up vote 2 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.