jemminger
2010-Mar-28 18:41 UTC
ActionController::UnknownHttpMethod: ***, accepted HTTP methods are get, head, put, post, delete, and options
I''m occasionally getting exception notices with this error message: ActionController::UnknownHttpMethod: ***, accepted HTTP methods are get, head, put, post, delete, and options Anyone ever seen this or know what could be causing it? Thanks, Jeff -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Nikolaj Nikolajsen
2010-Apr-07 18:23 UTC
Re: ActionController::UnknownHttpMethod: ***, accepted HTTP methods are get, head, put, post, delete, and options
Got two of these on one of our sites today within seconds. My guess is that it''s a bot scanning for vulnerabilities on the site. Error: ActionController::UnknownHttpMethod: CONNECT, accepted HTTP methods are get, head, put, post, delete, and options Action: Internal URL: http://mail.messaging.microsoft.com:25/ Parameters: {"action"=>"", "controller"=>""} File: [GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/ request.rb:35 Error: ActionController::UnknownHttpMethod: CONNECT, accepted HTTP methods are get, head, put, post, delete, and options Action: Internal URL: http://www.google.com:443/ Parameters: {"action"=>"", "controller"=>""} File: [GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/ request.rb:35 I would also like to hear from others experiencing this, and if any precautions should be taken... /nikolaj -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
jemminger
2010-May-15 02:20 UTC
Re: ActionController::UnknownHttpMethod: ***, accepted HTTP methods are get, head, put, post, delete, and options
Still getting a slew of these on one of my sites. Annoying, because you can''t seem to trap it with the normal rescue_from in application_controller, as Rails seems to intercept this exception before it ever makes it that far up the chain. On Apr 7, 2:23 pm, Nikolaj Nikolajsen <nikolaj...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Got two of these on one of our sites today within seconds. My guess is > that it''s a bot scanning for vulnerabilities on the site. > > Error: ActionController::UnknownHttpMethod: CONNECT, accepted HTTP > methods are get, head, put, post, delete, and options > Action: Internal > URL:http://mail.messaging.microsoft.com:25/ > Parameters: {"action"=>"", "controller"=>""} > File: [GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/ > request.rb:35 > > Error: ActionController::UnknownHttpMethod: CONNECT, accepted HTTP > methods are get, head, put, post, delete, and options > Action: Internal > URL:http://www.google.com:443/ > Parameters: {"action"=>"", "controller"=>""} > File: [GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/ > request.rb:35 > > I would also like to hear from others experiencing this, and if any > precautions should be taken... > > /nikolaj-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2010-May-15 15:05 UTC
Re: Re: ActionController::UnknownHttpMethod: ***, accepted HTTP methods are get, head, put, post, delete, and options
On Fri, May 14, 2010 at 7:20 PM, jemminger <jemminger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Still getting a slew of these on one of my sites. Annoying, because > you can''t seem to trap it with the normal rescue_from in > application_controller, as Rails seems to intercept this exception > before it ever makes it that far up the chain.Seems like this might be a good use case for a Rack filter: intercept the bad request earlier and discard/log/whatever... -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Possibly Parallel Threads
- ActiveRecord::UnknownAttributeError: unknown attribute: <script type
- rescue_from ActionController::RoutingError II
- Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
- Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
- rescue_from for NoMethodError