sitespeedio / sitespeedio/sitespeed.io
Error generating url/summary/index
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 624
- Avg merge
- 4h 8m
- Merged PRs (30d)
- 2
Description
Your question
Hi,
Im getting this error at the end of my run when i generate the report:
`ERROR: Could not generate url/summary/index, /usr/src/app/lib/plugins/html/templates/url/thirdparty/index.pug:24
22| h2 Third party
23|
24| - const thirdPartyWebVersion = pageInfo.data.coach.run ? pageInfo.data.coach.run.thirdPartyWebVersion : pageInfo.data.coach.pageSummary.thirdPartyWebVersion;
25| p Third party requests categorised by
26| a(href='https://github.com/patrickhulce/third-party-web') Third party web
27| | version #{thirdPartyWebVersion}.
Cannot read properties of undefined (reading 'run')
[2024-03-28 00:36:43] ERROR: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at writeFile (node:fs:2241:5)
at node:internal/util:442:7
at new Promise ()
at writeFile (node:internal/util:428:12)
at write (file:///usr/src/app/lib/core/resultsStorage/storageManager.js:26:10)
at file:///usr/src/app/lib/core/resultsStorage/storageManager.js:113:9
at async HTMLBuilder.render (file:///usr/src/app/lib/plugins/html/htmlBuilder.js:340:7)
Errors while running:
Rejected {
"uuid": "64dd553c-2196-4a86-9831-dc607c4c639f",
"type": "sitespeedio.render",
"timestamp": "2024-03-28T00:36:41+00:00",
"source": "queueHandler",
"data": "{...}"
} for plugin: html
{"code":"ERR_INVALID_ARG_TYPE"}
Error: Errors while running:
Rejected {
"uuid": "64dd553c-2196-4a86-9831-dc607c4c639f",
"type": "sitespeedio.render",
"timestamp": "2024-03-28T00:36:41+00:00",
"source": "queueHandler",
"data": "{...}"
} for plugin: html
{"code":"ERR_INVALID_ARG_TYPE"}
at start (file:///usr/src/app/bin/sitespeed.js:178:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///usr/src/app/bin/sitespeed.js:189:1`
What does the error generally indicate and how would i got about troubleshooting this? This occurs in the sitespeedio/sitespeed.io:33.4.0 and sitespeedio/sitespeed.io:latest images.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lib/plugins/html/templates/url/thirdparty/index.pug:24 and trace the related data through lib/plugins/html/htmlBuilder.js and lib/core/resultsStorage/storageManager.js. Reproduce the report-generation failure with the cited Docker image, determine why the expected data is missing, and verify that the report completes without the template or writeFile errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs, pug
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100