{"record":{"id":"865bd1cbc43fe50f","repo":"flippercloud/flipper","slug":"self-class-does-not-support-request-method-re","errorCode":null,"errorMessage":"#{self.class} does not support request method #{request_method_name.inspect}","messagePattern":"#(.+?) does not support request method #(.+?)","errorType":"exception","errorClass":"Flipper::Api::RequestMethodNotSupported","httpStatus":null,"severity":"error","filePath":"lib/flipper/api/action.rb","lineNumber":83,"sourceCode":"\n      # Public: The params for the request.\n      def_delegator :@request, :params\n\n      def initialize(flipper, request)\n        @flipper = flipper\n        @request = request\n        @code = 200\n        @headers = {Rack::CONTENT_TYPE => Api::CONTENT_TYPE}\n      end\n\n      # Public: Runs the request method for the provided request.\n      #\n      # Returns whatever the request method returns in the action.\n      def run\n        if valid_request_method? && respond_to?(request_method_name)\n          catch(:halt) { send(request_method_name) }\n        else\n          raise Api::RequestMethodNotSupported,\n                \"#{self.class} does not support request method #{request_method_name.inspect}\"\n        end\n      end\n\n      # Public: Runs another action from within the request method of a\n      # different action.\n      #\n      # action_class - The class of the other action to run.\n      #\n      # Examples\n      #\n      #   run_other_action Home\n      #   # => result of running Home action\n      #\n      # Returns result of other action.\n      def run_other_action(action_class)\n        action_class.new(flipper, request).run\n      end","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/flippercloud/flipper/blob/1f86de3ec91521585b156445e156642938b19cb0/lib/flipper/api/action.rb#L65-L101","documentation":"Error \"#{self.class} does not support request method #{request_method_name.inspect}\" thrown in flippercloud/flipper.","triggerScenarios":"Thrown at lib/flipper/api/action.rb:83 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Define a handler method matching the HTTP verb in your API action class (e.g. def get; ... end)","Route the request to the correct action; this error means no method exists for the request's HTTP verb","Check that the action is registered in the API router for the method you are calling"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1f86de3ec91521585b156445e156642938b19cb0","analyzedAt":"2026-08-23T04:36:09.896Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}