GoogleChrome / lighthouse

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

TypeError: Cannot read properties of undefined (reading 'score') #15991

Closed kdencerv closed 4 weeks ago

kdencerv commented 1 month ago

FAQ

URL

https://www.sitespeed.io/

What happened?

I was running a GPSI test via sitespeedio plugin with this command:

docker run sitespeedio/sitespeed.io:33.6.0-plus1 --plugins.add /gpsi/lib/index.js --plugins.remove browsertime --plugins.remove /lighthouse/index.js "https://www.sitespeed.io/" -n 1

We've been using GPSI plugin in sitespeed for a long time with no problems. But recently we've been experiencing the same error

ERROR: TypeError: Cannot read properties of undefined (reading 'score') at repackagePageSummary (file:///gpsi/lib/pageSummary.js:19:58) at file:///gpsi/lib/index.js:92:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

What did you expect?

The tests we've been doing were working a couple of days ago. We're expecting a complete sitespeed GPSI result.

What have you tried?

We tried testing different urls and still got the same error. The urls we used are working fine in https://pagespeed.web.dev/.

How were you running Lighthouse?

PageSpeed Insights, Other

Lighthouse Version

12.0

Chrome Version

124.0.6367.60

Node Version

v20.9.0

OS

No response

Relevant log output

Google Chrome 124.0.6367.60
Mozilla Firefox 125.0.1
Microsoft Edge 123.0.2420.97
[2024-05-11 09:31:45] INFO: Versions OS: linux 5.15.133.1-microsoft-standard-WSL2 nodejs: v20.9.0 sitespeed.io: 33.6.0 browsertime: 21.7.0 coach: 8.0.2
[2024-05-11 09:31:46] INFO: Sending url https://www.sitespeed.io/ to test on Page Speed Insights
[2024-05-11 09:32:00] INFO: Got https://www.sitespeed.io/ analysed from Google Page Speed Insights
[2024-05-11 09:32:00] ERROR: TypeError: Cannot read properties of undefined (reading 'score')
    at repackagePageSummary (file:///gpsi/lib/pageSummary.js:19:58)
    at file:///gpsi/lib/index.js:92:13
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
connorjclark commented 1 month ago

These errors are coming from a tool unrelated to Lighthouse. Can you file a report with sitespeed or gpsi or whoever?

consult the breaking changes and removed audits mentioned for 12.0, which just recently released in PSI https://github.com/GoogleChrome/lighthouse/releases/tag/v12.0.0