{"record":{"id":"ea5a6247fcb46ce6","repo":"bensheldon/good_job","slug":"webrick-was-requested-as-the-probe-server-handler","errorCode":null,"errorMessage":"WEBrick was requested as the probe server handler, but it's not in the load path. GoodJob doesn't keep WEBrick as a dependency, so you'll have to make sure its added to your Gemfile to make use of it. GoodJob will fallback to its own webserver in the meantime.","messagePattern":"WEBrick was requested as the probe server handler, but it's not in the load path\\. GoodJob doesn't keep WEBrick as a dependency, so you'll have to make sure its added to your Gemfile to make use of it\\. GoodJob will fallback to its own webserver in the meantime\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/good_job/probe_server.rb","lineNumber":44,"sourceCode":"      @future.execute\n    end\n\n    def running?\n      @handler&.running?\n    end\n\n    def stop\n      @handler&.stop\n      @future&.value # wait for Future to exit\n    end\n\n    def build_handler(port:, handler:, app:)\n      if handler == :webrick\n        begin\n          require 'webrick'\n          WebrickHandler.new(app, port: port, logger: GoodJob.logger)\n        rescue LoadError\n          GoodJob.logger.warn(\"WEBrick was requested as the probe server handler, but it's not in the load path. GoodJob doesn't keep WEBrick as a dependency, so you'll have to make sure its added to your Gemfile to make use of it. GoodJob will fallback to its own webserver in the meantime.\")\n          SimpleHandler.new(app, port: port, logger: GoodJob.logger)\n        end\n      else\n        SimpleHandler.new(app, port: port, logger: GoodJob.logger)\n      end\n    end\n  end\nend\n","sourceCodeStart":26,"sourceCodeEnd":53,"githubUrl":"https://github.com/bensheldon/good_job/blob/5fcde48f8765e69901ffa9c5a06122b19c73875f/lib/good_job/probe_server.rb#L26-L53","documentation":"Error \"WEBrick was requested as the probe server handler, but it's not in the load path. GoodJob doesn't keep WEBrick as a dependency, so you'll have to make sure its added to your Gemfile to make use of it. GoodJob will fallback to its own webserver in the meantime.\" thrown in bensheldon/good_job.","triggerScenarios":"Thrown at lib/good_job/probe_server.rb:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the webrick gem to your Gemfile to use WEBrick as the probe server handler.","Run bundle install after adding the gem; otherwise GoodJob falls back to its own webserver."],"exampleFix":"gem 'webrick'","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5fcde48f8765e69901ffa9c5a06122b19c73875f","analyzedAt":"2026-08-23T14:55:11.399Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}