flippercloud/flipper · error · RuntimeError

#{data_type} is not supported by this adapter

Error message

#{data_type} is not supported by this adapter

What it means

Error "#{data_type} is not supported by this adapter" thrown in flippercloud/flipper.

Source

Thrown at lib/flipper/adapters/http.rb:234

      def value_for_gate(gate, api_gate)
        value = api_gate['value']
        case gate.data_type
        when :boolean, :integer
          value ? value.to_s : value
        when :json
          value
        when :set
          value ? value.to_set : Set.new
        else
          unsupported_data_type gate.data_type
        end
      end

      private

      def unsupported_data_type(data_type)
        raise "#{data_type} is not supported by this adapter"
      end
    end
  end
end

View on GitHub (pinned to 1f86de3ec9)

Solutions

  1. Only send data types the HTTP adapter supports (strings, integers, booleans, sets as documented)
  2. Serialize custom types to a supported representation before storing
  3. Upgrade the flipper API server and client together so supported data types match

When it happens

Trigger: Thrown at lib/flipper/adapters/http.rb:234 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/39b0c8ddc6907b93. Report an issue: GitHub.