GoogleChrome/lighthouse · error · LighthouseError
INVALID_URL
INVALID_URL
Error message
The URL you have provided appears to be invalid.
What it means
Error "The URL you have provided appears to be invalid." thrown in GoogleChrome/lighthouse.
Source
Thrown at core/lib/url-utils.js:274
if (!match) return undefined;
const ext = match[1];
if (ext === 'svg') return 'image/svg+xml';
if (ext === 'jpg') return 'image/jpeg';
return `image/${ext}`;
}
/**
* @param {string|undefined} url
* @return {string}
*/
static normalizeUrl(url) {
// Verify the url is valid and that protocol is allowed
if (url && this.isValid(url) && this.isProtocolAllowed(url)) {
// Use canonicalized URL (with trailing slashes and such)
return new URL(url).href;
} else {
throw new LighthouseError(LighthouseError.errors.INVALID_URL);
}
}
}
UrlUtils.INVALID_URL_DEBUG_STRING =
'Lighthouse was unable to determine the URL of some script executions. ' +
'It\'s possible a Chrome extension or other eval\'d code is the source.';
export default UrlUtils;
View on GitHub (pinned to 9515cd4e58)
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.
When it happens
Trigger: Raised when a URL string fails validation in url-utils (e.g. malformed or unsupported scheme).
Common situations: See trigger scenarios.
AI-assisted analysis of GoogleChrome/lighthouse@9515cd4e58 (2026-08-13).
Data as JSON: /api/errors/82a1a6d7d86ff0e9.
Report an issue: GitHub.