{"record":{"id":"82a1a6d7d86ff0e9","repo":"GoogleChrome/lighthouse","slug":"invalid-url-82a1a6","errorCode":"INVALID_URL","errorMessage":"The URL you have provided appears to be invalid.","messagePattern":"The URL you have provided appears to be invalid\\.","errorType":"exception","errorClass":"LighthouseError","httpStatus":null,"severity":"error","filePath":"core/lib/url-utils.js","lineNumber":274,"sourceCode":"    if (!match) return undefined;\n\n    const ext = match[1];\n    if (ext === 'svg') return 'image/svg+xml';\n    if (ext === 'jpg') return 'image/jpeg';\n    return `image/${ext}`;\n  }\n\n  /**\n   * @param {string|undefined} url\n   * @return {string}\n   */\n  static normalizeUrl(url) {\n    // Verify the url is valid and that protocol is allowed\n    if (url && this.isValid(url) && this.isProtocolAllowed(url)) {\n      // Use canonicalized URL (with trailing slashes and such)\n      return new URL(url).href;\n    } else {\n      throw new LighthouseError(LighthouseError.errors.INVALID_URL);\n    }\n  }\n}\n\nUrlUtils.INVALID_URL_DEBUG_STRING =\n    'Lighthouse was unable to determine the URL of some script executions. ' +\n    'It\\'s possible a Chrome extension or other eval\\'d code is the source.';\n\nexport default UrlUtils;\n","sourceCodeStart":256,"sourceCodeEnd":284,"githubUrl":"https://github.com/GoogleChrome/lighthouse/blob/9515cd4e58ebed69f78742d932b501c2cab8ad8f/core/lib/url-utils.js#L256-L284","documentation":"Error \"The URL you have provided appears to be invalid.\" thrown in GoogleChrome/lighthouse.","triggerScenarios":"Raised when a URL string fails validation in url-utils (e.g. malformed or unsupported scheme).","commonSituations":"See trigger scenarios.","solutions":["Check the URL for typos and ensure it includes a valid scheme (http:// or https://).","Make sure the hostname is valid and does not contain illegal characters."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9515cd4e58ebed69f78742d932b501c2cab8ad8f","analyzedAt":"2026-08-13T06:28:10.346Z","schemaVersion":2},"datasetVersion":"2026-08-13T09:17:06.757Z"}