Skip to content

Instantly share code, notes, and snippets.

@jgm106
Last active December 16, 2015 09:48
Show Gist options
  • Save jgm106/5415196 to your computer and use it in GitHub Desktop.
Save jgm106/5415196 to your computer and use it in GitHub Desktop.
Error in production.log:
ActionController::RoutingError (No route matches [GET] "/github_hook"):
actionpack (3.2.12) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.12) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.12) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.12) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.12) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.12) 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.12) 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.12) lib/action_dispatch/middleware/static.rb:62:in `call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
railties (3.2.12) lib/rails/engine.rb:479:in `call'
railties (3.2.12) lib/rails/application.rb:223:in `call'
railties (3.2.12) lib/rails/railtie/configurable.rb:30:in `method_missing'
passenger (4.0.0.rc4) lib/phusion_passenger/rack/thread_handler_extension.rb:71:in `process_request'
passenger (4.0.0.rc4) lib/phusion_passenger/request_handler/thread_handler.rb:132:in `accept_and_process_next_request'
passenger (4.0.0.rc4) lib/phusion_passenger/request_handler/thread_handler.rb:103:in `main_loop'
passenger (4.0.0.rc4) lib/phusion_passenger/request_handler.rb:458:in `block (4 levels) in start_threads'
passenger (4.0.0.rc4) lib/phusion_passenger/utils/robust_interruption.rb:102:in `disable_interruptions'
passenger (4.0.0.rc4) lib/phusion_passenger/request_handler.rb:453:in `block (3 levels) in start_threads'
Rake route does exist:
redmine]$ rake routes | grep github_hook
github_hook POST /github_hook(.:format) github_hook#index
Fix:
GET vs POST....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment