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

Error generating url/summary/index #4124

Open
ryanyango opened this issue Apr 3, 2024 · 3 comments
Open

Error generating url/summary/index #4124

ryanyango opened this issue Apr 3, 2024 · 3 comments

Comments

@ryanyango
Copy link

ryanyango commented Apr 3, 2024

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.

@soulgalore
Copy link
Member

soulgalore commented Apr 3, 2024

Hi @ryanyango thank you for creating the issue! Can you share how you run and what URL you test so I can recreate it?

Thanks
Peter

@ryanyango
Copy link
Author

Hi @soulgalore i run the following command:

docker run --rm -v "$(pwd):/sitespeed.io" sitespeedio/sitespeed.io:latest -b chrome --multi <internal_url> ssio_workflow.mjs -n 1 --video
sharing the url wont help because its an internal test environment. What would be some steps i could take to start investigating the cause?

@soulgalore
Copy link
Member

It looks like no coach data is collected from one page. I would watch the browser and check if the script do what's its supposed to do: https://www.sitespeed.io/documentation/sitespeed.io/scripting/tutorial-07-Debugging-Scripts.html#watch-what's-going-on - maybe there's one step that do not work?

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

No branches or pull requests

2 participants