pressly / uber-s3

Ruby S3 client with synchronous and asynchronous I/O adapters
http://nulayer.com
MIT License
40 stars 17 forks source link

not working with em_http_fibered #1

Open ngw opened 13 years ago

ngw commented 13 years ago

Hi, I just updated my bundle, and something weird happens when using em_http_fibered

The simple call

s3 = UberS3.new( { 
      :access_key => @config[ 's3_access_key' ], :secret_access_key  => @config[ 's3_secret_key' ],
      :bucket => bucket, :persistent => false, :adapter => :em_http_fibered } )

returns without error and an S3Object, but it's not really able to use S3. When I try to save an object it just returns false, and after some tests I noticed that it doesn't even list correctly the objects in the bucket.

Works as expected when removing the adapter.

Bundle:

[ngw@chienandalusia:~/kenji]$ bundle show (10-27 11:10) Gems included by the bundle:

rcarvalho commented 12 years ago

I'm getting the same error as well.

rcarvalho commented 12 years ago

So, I forked the code and was able to do some debugging. The reason that it couldn't load em_http_fibered is because I didn't have the em-synchrony gem installed. It looks like em-http-request and em-synchrony are required to use this gem and I already had em-http-request installed. I would add both of these (I know it is listed in your Gemfile) to your gemspec as dependencies.