Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

not working with em_http_fibered #1

Open
ngw opened this issue Oct 27, 2011 · 2 comments
Open

not working with em_http_fibered #1

ngw opened this issue Oct 27, 2011 · 2 comments

Comments

@ngw
Copy link

ngw commented Oct 27, 2011

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:

  • addressable (2.2.6)
  • async-rack (0.5.1)
  • autotest-standalone (4.5.8)
  • bundler (1.0.15)
  • diff-lcs (1.1.3)
  • em-http-request (1.0.0.beta.3)
  • em-socksify (0.1.0)
  • em-synchrony (1.0.0)
  • eventmachine (1.0.0.beta.4)
  • goliath (0.9.4)
  • http_parser.rb (0.5.3)
  • http_router (0.9.7)
  • i18n (0.6.0)
  • kramdown (0.13.3)
  • log4r (1.1.9)
  • mime-types (1.17.2)
  • mimetype-fu (0.1.2)
  • multi_json (1.0.3)
  • mustache (0.99.4)
  • rack (1.3.5)
  • rack-accept-media-types (0.9)
  • rack-contrib (1.1.0)
  • rack-respond_to (0.9.8)
  • rake (0.9.2.2)
  • rspec (2.7.0)
  • rspec-core (2.7.1)
  • rspec-expectations (2.7.0)
  • rspec-mocks (2.7.0)
  • toadhopper (2.0)
  • uber-s3 (0.1.4)
  • url_mount (0.2.1)
  • yajl-ruby (1.0.0)
  • zipruby (0.3.6)
@rcarvalho
Copy link

I'm getting the same error as well.

@rcarvalho
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants