ActionController::NotImplemented (Only requests are allowed.)

We have a bunch of strange entries in our error log, and don't know exactly what they mean: The errors are as follows

ActionController::NotImplemented (Only requests are allowed.):     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ routing.rb:1437:in `recognize_path'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ routing.rb:1424:in `recognize'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:170:in `handle_request'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:115:in `dispatch'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:126:in `dispatch_cgi'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:9:in `dispatch'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ rails.rb:76:in `process'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ rails.rb:74:in `synchronize'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ rails.rb:74:in `process'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 159:in `process_client'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 158:in `each'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 158:in `process_client'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in `initialize'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in `new'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 268:in `initialize'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 268:in `new'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 268:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ configurator.rb:282:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ configurator.rb:281:in `each'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ configurator.rb:281:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/mongrel_rails:128:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ command.rb:212:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/mongrel_rails:281     /usr/bin/mongrel_rails:19:in `load'     /usr/bin/mongrel_rails:19

We got an error report from a user that file uploading on our site was not working, but we could not reproduce the error... could this error in the error log be related?

In case it helps, I'm also seeing this error, not sure if it is related though

/!\ FAILSAFE /!\ Mon Mar 10 22:51:17 -0700 2008   Status: 500 Internal Server Error   propfind, accepted HTTP methods are delete, head, get, options, post, and put     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ request.rb:26:in `request_method'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ request.rb:35:in `method'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ routing.rb:1483:in `extract_request_environment'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ routing.rb:1424:in `recognize'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:170:in `handle_request'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:115:in `dispatch'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:126:in `dispatch_cgi'     /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/ dispatcher.rb:9:in `dispatch'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ rails.rb:76:in `process'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ rails.rb:74:in `synchronize'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ rails.rb:74:in `process'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 159:in `process_client'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 158:in `each'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 158:in `process_client'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in `initialize'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in `new'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 285:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 268:in `initialize'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 268:in `new'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel.rb: 268:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ configurator.rb:282:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ configurator.rb:281:in `each'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ configurator.rb:281:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/mongrel_rails:128:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/../lib/mongrel/ command.rb:212:in `run'     /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.2/bin/mongrel_rails:281     /usr/bin/mongrel_rails:19:in `load'     /usr/bin/mongrel_rails:19

More info: Its unrelated to the uploading issue, and that's been fixed, but these are still showing up in the logs Any help would be appreciated :slight_smile:

Thanks

csvy, What was the request that triggered the NotImplemented exception -- the lines preceding the error in the log?

I've seen this error happen when an HTTP OPTIONS method is requested of the server, and for us this happened when IE tries to load a MS Office file (in my case an xls). Are you serving any such files from your app.

Let's say you have a static xls sitting under /static/some-spreadsheet.xls. Well, IE/Excel attempts an HTTP OPTIONS request on the /static/ path. This causes similar behavior to what you're seeing.

The fix that I employed was to configure the exception_notifiable plugin to treat NotImplemented exceptions as 404 errors, because all we cared about was avoiding the exception emails every time an IE user launched Excel.