flippercloud/flipper · error · Flipper::Api::RequestMethodNotSupported

#{self.class} does not support request method #{request_meth

Error message

#{self.class} does not support request method #{request_method_name.inspect}

What it means

Error "#{self.class} does not support request method #{request_method_name.inspect}" thrown in flippercloud/flipper.

Source

Thrown at lib/flipper/api/action.rb:83

      # Public: The params for the request.
      def_delegator :@request, :params

      def initialize(flipper, request)
        @flipper = flipper
        @request = request
        @code = 200
        @headers = {Rack::CONTENT_TYPE => Api::CONTENT_TYPE}
      end

      # Public: Runs the request method for the provided request.
      #
      # Returns whatever the request method returns in the action.
      def run
        if valid_request_method? && respond_to?(request_method_name)
          catch(:halt) { send(request_method_name) }
        else
          raise Api::RequestMethodNotSupported,
                "#{self.class} does not support request method #{request_method_name.inspect}"
        end
      end

      # Public: Runs another action from within the request method of a
      # different action.
      #
      # action_class - The class of the other action to run.
      #
      # Examples
      #
      #   run_other_action Home
      #   # => result of running Home action
      #
      # Returns result of other action.
      def run_other_action(action_class)
        action_class.new(flipper, request).run
      end

View on GitHub (pinned to 1f86de3ec9)

Solutions

  1. Define a handler method matching the HTTP verb in your API action class (e.g. def get; ... end)
  2. Route the request to the correct action; this error means no method exists for the request's HTTP verb
  3. Check that the action is registered in the API router for the method you are calling

When it happens

Trigger: Thrown at lib/flipper/api/action.rb:83 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of flippercloud/flipper@1f86de3ec9 (2026-08-23). Data as JSON: /api/errors/865bd1cbc43fe50f. Report an issue: GitHub.