flippercloud/flipper · error · Flipper::Adapters::Strict::NotFound

Could not find feature #{name.inspect}. Call `Flipper.add(#{

Error message

Could not find feature #{name.inspect}. Call `Flipper.add(#{name.inspect})` to create it.

What it means

Error "Could not find feature #{name.inspect}. Call `Flipper.add(#{name.inspect})` to create it." thrown in flippercloud/flipper.

Source

Thrown at lib/flipper/adapters/strict.rb:69

      def get_multi(features)
        features.each { |feature| assert_feature_exists(feature) }
        super
      end

      private

      def assert_feature_exists(feature)
        return if self.class.sync_mode
        return if @adapter.features.include?(feature.key)

        case handler
        when Proc then handler.call(feature)
        when :warn then warn NotFound.new(feature.key).message
        when :noop, false, nil
         # noop
        else # truthy or :raise
         raise NotFound.new(feature.key)
        end
      end

    end
  end
end

View on GitHub (pinned to 1f86de3ec9)

Solutions

  1. Create the feature first with Flipper.add(:feature_name) before enabling/checking it
  2. Use the default (non-strict) adapter in development so unknown features are treated as disabled instead of raising
  3. Fix the feature name typo; the strict adapter raises for any feature that was never added

When it happens

Trigger: Thrown at lib/flipper/adapters/strict.rb:69 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/3a2e2fdb301a7131. Report an issue: GitHub.