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/active_record.rb:194
set(feature, gate, thing)
when :json
with_write_connection(@gate_class) do
delete(feature, gate)
end
when :set
with_write_connection(@gate_class) do
@gate_class.where(feature_key: feature.key, key: gate.key, value: thing.value).destroy_all
end
else
unsupported_data_type gate.data_type
end
true
end
# Private
def unsupported_data_type(data_type)
raise "#{data_type} is not supported by this adapter"
end
private
def model_class(default_class, table_prefix, table_name)
return default_class if table_prefix.nil?
Class.new(default_class) do
self.table_name = "#{table_prefix}#{table_name}"
end
end
def set(feature, gate, thing, options = {})
clear_feature = options.fetch(:clear, false)
json_feature = options.fetch(:json, false)
raise VALUE_TO_TEXT_WARNING if json_feature && value_not_text?
View on GitHub (pinned to 1f86de3ec9)
Solutions
- Do not use ActiveRecord adapter features for that data type; it only supports the documented gate data types
- Migrate the offending data to a supported type (string, integer, boolean, json as documented)
- Upgrade flipper-active_record if a newer version added support for that data type
When it happens
Trigger: Thrown at lib/flipper/adapters/active_record.rb:194 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/8bb6479b466c8397.
Report an issue: GitHub.