{"record":{"id":"6964f3542b60accd","repo":"puppetlabs/puppet","slug":"value-is-an-invalid-url","errorCode":null,"errorMessage":"%{value} is an invalid url","messagePattern":"%(.+?) is an invalid url","errorType":"exception","errorClass":"Puppet::Error","httpStatus":null,"severity":"error","filePath":"lib/puppet/util/network_device/config.rb","lineNumber":95,"sourceCode":"    rescue Errno::EACCES\n      Puppet.err _(\"Configuration error: Cannot read %{file}; cannot serve\") % { file: @file }\n      # raise Puppet::Error, \"Cannot read #{@config}\"\n    rescue Errno::ENOENT\n      Puppet.err _(\"Configuration error: '%{file}' does not exit; cannot serve\") % { file: @file }\n    end\n\n    @devices = devices\n  end\n\n  def parse_directive(device, var, value, count)\n    case var\n    when \"type\"\n      device.provider = value\n    when \"url\"\n      begin\n        URI.parse(value)\n      rescue URI::InvalidURIError\n        raise Puppet::Error, _(\"%{value} is an invalid url\") % { value: value }\n      end\n      device.url = value\n    when \"debug\"\n      device.options[:debug] = true\n    else\n      error_location_str = Puppet::Util::Errors.error_location(nil, count)\n      raise Puppet::Error, _(\"Invalid argument '%{var}' at %{error_location}\") % { var: var, error_location: error_location_str }\n    end\n  end\nend\n","sourceCodeStart":77,"sourceCodeEnd":106,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/util/network_device/config.rb#L77-L106","documentation":"Error \"%{value} is an invalid url\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/util/network_device/config.rb:95 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}