Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
kdencerv opened this issue May 11, 2024 · 1 comment
Open
3 tasks done

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

kdencerv opened this issue May 11, 2024 · 1 comment
Assignees

Comments

@kdencerv
Copy link

kdencerv commented May 11, 2024

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants