-
Notifications
You must be signed in to change notification settings - Fork 29
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
EOFError in SabisuRails::ExplorerController#index #19
Comments
Can you explain a little bit further when is this being presented? |
This happened to me also while following http://apionrails.icalialabs.com/ tutorial, any idea why this is happening? |
I think is something related to Are you running the application to explore on another server? |
I am having this issue also. I'm running Ubuntu Linux. Went to terminal and entered: prax start Any help if possible? |
same issue here , I'm using
with vagrant (forwarded port 8080 => 3000 )
|
Are you running the instance on a multithread server? something like Puma or Unicorn? |
nope, i'm following rails api book( great book btw ) , but running the default server (webrick I guess ). |
Are you using pow? or prax? |
I also have same problem env img Errno::ECONNREFUSED in SabisuRails::ExplorerController#index Extracted source (around line #879): Application Trace | Framework Trace | Full Trace |
Are you using a multithread server like puma or unicorn? |
I have linux, recently solved the same problem running
|
@ppeusco 's solution should work, make sure you have a multithread server... |
Having the same issue. It does not actually matter whether I use webrick or puma. As @YongWoonKim mentioned the issue is that Sabisu expects app to run on port 80 when it runs on 3000. Setup: |
The issue is that a port is not picked up by HTTParty and it starts using the default one which is 80. new_uri = path.relative? ? options[:uri_adapter].parse("#{base_uri}#{path}") : path.clone since base_uri is passed as is and path is /users/ (a default resource) we get the error above. an exact place in httparty (httparty/connection_adapter.rb) port = uri.port || (uri.scheme == 'https' ? 443 : 80) even if I specify the port in api_base_uri and the right URI is built, net/http.rb cannot establish connection to http://api.marketplace.dev:3000/users/ |
@YongWoonKim, are you sure you have specified api_base_uri in sabisu_rails.rb config file? Connection refused - connect(2) for "api.marketplaceapi.dev" port 80 |
@YongWoonKim did you made it work? |
@kurenn |
I'll close this then! |
@kurenn |
@tamatsyk what is going on?, sorry about that, I'll reopen! |
Same issue here. Following tutorial at http://apionrails.icalialabs.com/ exactly. Made sure the base_uri_path is set and all configurations set. After the timeout error stack, there are two instances of
Tested with both prax and WEBRick, same errors. |
Try using puma or unicorn, or run two different instances of the rails app, one running on the Let me know how it goes! |
Full trace:
/usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/protocol.rb:153:in
read_nonblock' /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/protocol.rb:153:in
rbuf_fill'/usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/protocol.rb:134:in
readuntil' /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/protocol.rb:144:in
readline'/usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/http/response.rb:39:in
read_status_line' /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/http/response.rb:28:in
read_new'/usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/http.rb:1406:in
block in transport_request' /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/http.rb:1403:in
catch'/usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/http.rb:1403:in
transport_request' /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/http.rb:1376:in
request'/usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/http.rb:1369:in
block in request' /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/http.rb:852:in
start'/usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/net/http.rb:1367:in
request' httparty (0.13.1) lib/httparty/request.rb:93:in
perform'httparty (0.13.1) lib/httparty.rb:521:in
perform_request' httparty (0.13.1) lib/httparty.rb:457:in
get'/usr/local/rvm/gems/ruby-2.0.0-p481@market_place_api/bundler/gems/sabisu-rails-de6340971e70/lib/sabisu_rails/request.rb:17:in
response' /usr/local/rvm/gems/ruby-2.0.0-p481@market_place_api/bundler/gems/sabisu-rails-de6340971e70/app/controllers/sabisu_rails/explorer_controller.rb:7:in
index'actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:in
send_action' actionpack (4.1.4) lib/abstract_controller/base.rb:189:in
process_action'actionpack (4.1.4) lib/action_controller/metal/rendering.rb:10:in
process_action' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:20:in
block in process_action'activesupport (4.1.4) lib/active_support/callbacks.rb:113:in
call' activesupport (4.1.4) lib/active_support/callbacks.rb:113:in
call'activesupport (4.1.4) lib/active_support/callbacks.rb:166:in
block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:229:in
call'activesupport (4.1.4) lib/active_support/callbacks.rb:229:in
block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:166:in
call'activesupport (4.1.4) lib/active_support/callbacks.rb:166:in
block in halting' activesupport (4.1.4) lib/active_support/callbacks.rb:86:in
call'activesupport (4.1.4) lib/active_support/callbacks.rb:86:in
run_callbacks' actionpack (4.1.4) lib/abstract_controller/callbacks.rb:19:in
process_action'actionpack (4.1.4) lib/action_controller/metal/rescue.rb:29:in
process_action' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:31:in
block in process_action'activesupport (4.1.4) lib/active_support/notifications.rb:159:in
block in instrument' activesupport (4.1.4) lib/active_support/notifications/instrumenter.rb:20:in
instrument'activesupport (4.1.4) lib/active_support/notifications.rb:159:in
instrument' actionpack (4.1.4) lib/action_controller/metal/instrumentation.rb:30:in
process_action'actionpack (4.1.4) lib/action_controller/metal/params_wrapper.rb:250:in
process_action' activerecord (4.1.4) lib/active_record/railties/controller_runtime.rb:18:in
process_action'actionpack (4.1.4) lib/abstract_controller/base.rb:136:in
process' actionview (4.1.4) lib/action_view/rendering.rb:30:in
process'actionpack (4.1.4) lib/action_controller/metal.rb:196:in
dispatch' actionpack (4.1.4) lib/action_controller/metal/rack_delegation.rb:13:in
dispatch'actionpack (4.1.4) lib/action_controller/metal.rb:232:in
block in action' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in
call'actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:82:in
dispatch' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:50:in
call'actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in
block in call' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in
each'actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in
call' actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in
call'railties (4.1.4) lib/rails/engine.rb:514:in
call' railties (4.1.4) lib/rails/railtie.rb:194:in
public_send'railties (4.1.4) lib/rails/railtie.rb:194:in
method_missing' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:71:in
block in call'actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in
each' actionpack (4.1.4) lib/action_dispatch/journey/router.rb:59:in
call'actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:678:in
call' warden (1.2.3) lib/warden/manager.rb:35:in
block in call'warden (1.2.3) lib/warden/manager.rb:34:in
catch' warden (1.2.3) lib/warden/manager.rb:34:in
call'rack (1.5.2) lib/rack/etag.rb:23:in
call' rack (1.5.2) lib/rack/conditionalget.rb:25:in
call'rack (1.5.2) lib/rack/head.rb:11:in
call' actionpack (4.1.4) lib/action_dispatch/middleware/params_parser.rb:27:in
call'actionpack (4.1.4) lib/action_dispatch/middleware/flash.rb:254:in
call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in
context'rack (1.5.2) lib/rack/session/abstract/id.rb:220:in
call' actionpack (4.1.4) lib/action_dispatch/middleware/cookies.rb:560:in
call'activerecord (4.1.4) lib/active_record/query_cache.rb:36:in
call' activerecord (4.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in
call'activerecord (4.1.4) lib/active_record/migration.rb:380:in
call' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:29:in
block in call'activesupport (4.1.4) lib/active_support/callbacks.rb:82:in
run_callbacks' actionpack (4.1.4) lib/action_dispatch/middleware/callbacks.rb:27:in
call'actionpack (4.1.4) lib/action_dispatch/middleware/reloader.rb:73:in
call' actionpack (4.1.4) lib/action_dispatch/middleware/remote_ip.rb:76:in
call'actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in
call' actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in
call'railties (4.1.4) lib/rails/rack/logger.rb:38:in
call_app' railties (4.1.4) lib/rails/rack/logger.rb:20:in
block in call'activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in
block in tagged' activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in
tagged'activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in
tagged' railties (4.1.4) lib/rails/rack/logger.rb:20:in
call'actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in
call' rack (1.5.2) lib/rack/methodoverride.rb:21:in
call'rack (1.5.2) lib/rack/runtime.rb:17:in
call' activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in
call'rack (1.5.2) lib/rack/lock.rb:17:in
call' actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in
call'rack (1.5.2) lib/rack/sendfile.rb:112:in
call' railties (4.1.4) lib/rails/engine.rb:514:in
call'railties (4.1.4) lib/rails/application.rb:144:in
call' rack (1.5.2) lib/rack/lock.rb:17:in
call'rack (1.5.2) lib/rack/content_length.rb:14:in
call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in
service'/usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in
service' /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in
run'/usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
The text was updated successfully, but these errors were encountered: