Skip to content

Instantly share code, notes, and snippets.

@penguinpowernz
Last active August 29, 2015 14:05
Show Gist options
  • Save penguinpowernz/ed6fc01269d9971c0c1d to your computer and use it in GitHub Desktop.
Save penguinpowernz/ed6fc01269d9971c0c1d to your computer and use it in GitHub Desktop.
There is some fuckery afoot
##########################################
##########################################
###### works fine from localhost #######
##########################################
##########################################
Started GET "/api/v1/devices/heartbeat" for 127.0.0.1 at 2014-08-18 11:35:48 +1200
Processing by Api::V1::DevicesController#heartbeat as JSON
SystemMessage Load (0.2ms) SELECT "system_messages".* FROM "system_messages"
Rendered text template (0.0ms)
Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms)
[2014-08-18 11:35:48] WARN Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
##########################################
##########################################
###### breaks from a remote host ######
##########################################
##########################################
Started POST "/api/v1/devices/heartbeat" for 192.168.3.127 at 2014-08-18 11:36:51 +1200
ActionController::RoutingError (No route matches [POST] "/api/v1/devices/heartbeat"):
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.5) lib/rack/lock.rb:15:in `call'
actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
railties (3.2.13) lib/rails/engine.rb:479:in `call'
railties (3.2.13) lib/rails/application.rb:223:in `call'
rack (1.4.5) lib/rack/content_length.rb:14:in `call'
railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
/home/robert/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/home/robert/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/home/robert/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
Rendered /home/robert/.rvm/gems/ruby-1.9.3-p429@rdms/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment