ytti/oxidized · error

configuration: "rest" is deprecated. Migrate to "extensions.

Error message

configuration: "rest" is deprecated. Migrate to "extensions.oxidized-web" and remove "rest" from the configuration

What it means

Error "configuration: "rest" is deprecated. Migrate to "extensions.oxidized-web" and remove "rest" from the configuration" thrown in ytti/oxidized.

Source

Thrown at lib/oxidized/core.rb:38

      @need_reload = false

      # If we receive a SIGHUP, queue a reload of the state
      reload_proc = proc do
        @need_reload = true
      end
      Signals.register_signal('HUP', reload_proc)

      # Load extensions, currently only oxidized-web
      # We have different namespaces for oxidized-web, which needs to be
      # adressed if we need a generic way to load extensions:
      # - gem: oxidized-web
      # - module: Oxidized::API
      # - path: oxidized/web
      # - entrypoint: Oxidized::API::Web.new(nodes, configuration)

      # Initialize oxidized-web if requested
      if Oxidized.config.has_key? 'rest'
        logger.warn(
          'configuration: "rest" is deprecated. Migrate to ' \
          '"extensions.oxidized-web" and remove "rest" from the configuration'
        )
        configuration = Oxidized.config.rest
      elsif Oxidized.config.extensions &&
            Oxidized.config.extensions['oxidized-web']&.load?
        # This comment stops rubocop complaining about Style/IfUnlessModifier
        configuration = Oxidized.config.extensions['oxidized-web']
      end

      if configuration
        begin
          require 'oxidized/web'
        rescue LoadError
          raise OxidizedError,
                'oxidized-web not found: install it or disable it by ' \
                'removing "rest" and "extensions.oxidized-web" from your ' \
                'configuration'

View on GitHub (pinned to 687ed4262d)

When it happens

Trigger: Thrown at lib/oxidized/core.rb:38 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ytti/oxidized@687ed4262d (2026-08-23). Data as JSON: /api/errors/56c5c6072fb10280. Report an issue: GitHub.