flippercloud/flipper · error · Flipper::UI::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/ui/action.rb:113

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

      def initialize(flipper, request)
        @flipper = flipper
        @request = request
        @code = 200
        @headers = {Rack::CONTENT_TYPE => 'text/plain'}
      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 UI::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 for the HTTP verb in your UI action class (e.g. def post; ... end)
  2. Check the UI route mapping; the request used a verb this action does not implement
  3. Use the correct HTTP method when calling the UI endpoint

When it happens

Trigger: Thrown at lib/flipper/ui/action.rb:113 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/8e37c851b12bba9a. Report an issue: GitHub.