GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28k stars 9.32k forks source link

Status code: 403 and code: ERRORED_DOCUMENT_REQUEST #16084

Closed Achchheweb closed 1 week ago

Achchheweb commented 1 week ago

FAQ

URL

https://indianexpress.com/

What happened?

i'm using lighhouse v12.0.0. i have setup lighthouse npm on server and local as well. But on server i have get maximum URLs reports properly but for some site like: https://indianexpress.com/ getting issue : There was an error running Lighthouse: Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: 403) (code: ERRORED_DOCUMENT_REQUEST)

chrome-launcher 1.1.0

How to resolve this issue setup url is https://frontend-lighthouse.webgarh.net/

What did you expect?

i want to get the website reports.

What have you tried?

i tried with extra header but i was not fixed.

How were you running Lighthouse?

node

Lighthouse Version

12.0.0

Chrome Version

124.0.6367.91

Node Version

18.17

OS

Ubuntu 20.0

Relevant log output

There was an error running Lighthouse: `Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: 403)` (code: ERRORED_DOCUMENT_REQUEST)
adamraine commented 1 week ago

The site is returning a 403 status code. Seems like the site is just blocking your server from connecting for some reason but that's all I can really say from this report.

Lighthouse CLI and PageSpeed insights both return results without this error.