sitespeed.io: Error generating url/summary/index

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 (<anonymous>) 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.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 37 (19 by maintainers)

Commits related to this issue

Most upvoted comments

Sorry. So there was the question about if you could see where those requests come from: If you check the actual page, is the freshchat.com URLs in an iframe? I can see that it’s on another frame, but normal in Chrome there should be an event that says that frame is attached to the main frame, but that is missing in your files. Either there’s a bug in Chrome then or we miss that event (maybe the test ends too early or something like that).

I had a go on Sunday but didn’t get it to work 100%. There’s those iframes that breaks generation and we need some smarter way to handle that. Will have another go soon.

Hello @soulgalore

I was able to reproduce the issue with the collectperfLog option enabled and have emailed the details you have asked. Please let me know if any further details are needed. Thank you.

Hi @CharlsChacko thank you I will see what I can do this weekend.

When I checked the HAR I could see that all requests is attached to page number two (you can see that when you drag/drop it into http://www.softwareishard.com/har/viewer/), that is wrong/broken, they should all be attached to the first page. Is it easy for you to run the test/reproduce it? Then if you could add --browsertime.chrome.collectPerfLog true you will get the internal log from Chrome that is used for generating the HAR file. If you can share that file with me that would be great and would help a lot. You can email it to me: peter [AT] soulgalore.com.

Thank you!

Hi @CharlsChacko as a first step I released 37.4.1 with a fix that at least fixes the problem of that the test totally fail in the end. For the root cause, need your input about browser and if you have the HAR file.

Hi @CharlsChacko , I can have a look at your issue later today. The thing with the “issue” is that even though the logs says the same in some cases, it is still different issues depending on what kind of script and test you run. I’m still looking for someone that could actually share a reproducible case. But I’ll have a look at your case and see if I can understand what’s going on.

Created a new issue #4243 as requested.