Error generating report: Error: spawn C:\home\site\wwwroot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs ENOENTat Process.ChildProcess._handle.onexit
-
Error generating report: Error: spawn C:\home\site\wwwroot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs ENOENTat Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)at onErrorNT (node:internal/child_process:478:16)at processTicksAndRejections (node:internal/process/task_queues:83:21) {errno: -4058,code: 'ENOENT',syscall: 'spawn C:\home\site\wwwroot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs',path: 'C:\home\site\wwwroot\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs',spawnargs: ['--local-url-access=false','C:\home\site\wwwroot\node_modules\html-pdf\lib\scripts\pdf_a4_portrait.js']}
-
This is some kind of super old jsreport installation.
Can you consider installing the latest?
https://jsreport.net/on-prem
-
Please give me step by step guide because we are using html-pdf and in local its running fine but in azure function app its giving this issue and also we are used the puppeteer but its also gives the issue
Error: ERROR: Failed to set up Chrome v124.0.6367.207! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
at file:///C:/home/site/wwwroot/node_modules/puppeteer/lib/esm/puppeteer/node/install.js:58:23
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 0)
at async downloadBrowser (file:///C:/home/site/wwwroot/node_modules/puppeteer/lib/esm/puppeteer/node/install.js:90:9) {
[cause]: [Error: ENOENT: no such file or directory, open 'C:\home\site\wwwroot.cache\puppeteer\chrome\124.0.6367.207-chrome-win32.zip'] {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\home\site\wwwroot\.cache\puppeteer\chrome\124.0.6367.207-chrome-win32.zip'
}
}
-
You can find the installation manuals for azure here
https://jsreport.net/learn/azure