Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seahorse kicking undefined_method 'decode_content' while trying to copy s3 object #1050

Closed
jeffchuber opened this issue Jan 8, 2016 · 4 comments
Assignees
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@jeffchuber
Copy link

The error I'm getting is Error:undefined method 'decode_content' for #<Net::HTTP::Put PUT> and the top line of the framework trace is aws-sdk-core (2.2.9) lib/seahorse/client/net_http/patches.rb:30:in 'block in new_transport_request'

I'm using Ruby 2.0 and Rails 4.2.1.

I'm trying to do a fairly simple copy one s3 object into a new location. My code is

s3 = Aws::S3::Resource.new
first = s3.bucket(ENV['S3_BUCKET']).object(source)
second = s3.bucket(ENV['S3_BUCKET']).object(destination)
second.copy_from(first)

source and destination are strings like 'uploads/stuff/stuff/file.txt"

I can't down if this is a complicated dependency issue. I've referenced these two issues #969, and #849 , but to no resolve.

Relevant gemfile

Using aws-sdk-core 2.2.9
Using aws-sdk-resources 2.2.9
Using aws-sdk 2.2.9

I appreciate the help!

@awood45
Copy link
Member

awood45 commented Jan 11, 2016

I can't reproduce this currently (your example works for me)...a full stack trace may help to see if there's something being plumbed up the stack, but I'll keep trying to reproduce.

@trevorrowe
Copy link
Member

@jeffchuber What is your exact RUBY_VERSION?

@awood45
Copy link
Member

awood45 commented Feb 2, 2016

Closing for inactivity. Feel free to reopen if you have more information, such as a stack trace.

@awood45 awood45 closed this as completed Feb 2, 2016
@jeffchuber
Copy link
Author

For those that find this on google - upgrading to ruby 2.2.4 fixed this problem.

@diehlaws diehlaws added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed information requested labels Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

4 participants