ytti/oxidized · error · Oxidized::OxidizedError

mechanize not found: sudo gem install mechanize

Error message

mechanize not found: sudo gem install mechanize

What it means

Error "mechanize not found: sudo gem install mechanize" thrown in ytti/oxidized.

Source

Thrown at lib/oxidized/model/mimosab11.rb:6

begin
  # Mechanize has to be intialized here as the login needs a POST request
  require "mechanize"
rescue LoadError
  # Oxidized requires mechanize
  raise Oxidized::OxidizedError, "mechanize not found: sudo gem install mechanize"
end

class Mimosab11 < Oxidized::Model
  using Refinements
  # Callback cfg_cb function to login(POST) then get(GET) the configuration
  cfg_cb = lambda do
    @e = Mechanize.new
    # Set login query endpoint(lqe) and login POST data(lqp)
    lqe = "https://#{@node.ip}/?q=index.login&mimosa_ajax=1"
    lgp = { "username" => "configure", "password" => @password }
    # Set get request endpoint(gc) for config
    gc = "https://#{@node.ip}/?q=preferences.configure&mimosa_action=download"
    # Not to verify self signed
    @e.verify_mode = 0
    @e.post(lqe, lgp)
    cfg = @e.get(gc)
    cfg.body
  end

View on GitHub (pinned to 687ed4262d)

When it happens

Trigger: Thrown at lib/oxidized/model/mimosab11.rb:6 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/1d8b65f1938f78a9. Report an issue: GitHub.