Random "Connection closed" error when running scheduled html-to-xlsx report
-
Since upgrading from jsreport 4.7 to 4.8 several months ago, the following error randomly appears for a daily scheduled report using the html-to-xlsx recipe:
2026-03-04T12:35:03.163Z - info: Starting rendering request 516 (user: undefined) rootId=kjw6gjl9zzb2eqa, id=kjw6gjl9zzb2eqa 2026-03-04T12:35:03.163Z - info: Rendering template { name: Template - ER EM Level Distributions Report, recipe: html, engine: handlebars, preview: false } rootId=kjw6gjl9zzb2eqa, id=kjw6gjl9zzb2eqa 2026-03-04T12:35:14.807Z - info: html-to-xlsx generation is starting rootId=kjw6gjl9zzb2eqa, id=kjw6gjl9zzb2eqa 2026-03-04T12:35:39.940Z - error: Report render failed (because) protocol error: Connection closed. Error: Protocol error: Connection closed. at Connection._rawSend (E:\jsreport4\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\Connection.js:97:35) at Connection.send (E:\jsreport4\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\Connection.js:90:21) at CdpPage.close (E:\jsreport4\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\Page.js:842:34) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) at async Object.destroy (E:\jsreport4\node_modules\chrome-page-eval\lib\eval.js:237:21) at async E:\jsreport4\node_modules\@jsreport\jsreport-html-to-xlsx\lib\htmlToXlsxProcess.js:131:15 rootId=kjw6gjl9zzb2eqa, id=kjw6gjl9zzb2eqaI can't trace this error to any data, and rerunning the report manually does not cause any problem. Most days, the report runs as scheduled without error at the same time every day, but this report must be reliably scheduled.
What can I examine to diagnose or prevent this error from occurring? Node version is 18.11.0.
Do you know if this error has been addressed in a later release?