Attempted with jsreport.Client, I get the 404 error.
Attempted with custom, It downloads the file
I bet its something silly on my end but cant for heaven's sake figure it out :'D .
For now I have gone ahead with the custom implementation. A voice in my head keeps wanting me to figure out the cause of this error :D If you want to get to the bottom of this error as well, I can put in a request for a test user and set up a mirror report and DM you the details.
As in the code example I'm using "Recipe = Recipe.ChromePdf" and no staticPDF recipe. And locally on my windows machine the rendering with the azure function in .net is working fine. If I switch there to "staticPDF" then I get the same error as on the linux machine on the azure cloud. So it seams there the chromepdf is somehow ignored or a fallback goes to staticPDF?
Another question: I tried running the node.js example on a static azure plan (OS: linux, Plan: (B1: 1)) and I get the following error:
Error: Failed to launch chrome!
[0330/091143.853361:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
at onClose (/home/site/wwwroot/node_modules/puppeteer/lib/Launcher.js:348:14)
at Interface.<anonymous> (/home/site/wwwroot/node_modules/puppeteer/lib/Launcher.js:337:50)
at Interface.emit (events.js:326:22)
at Interface.close (readline.js:416:8)
at Socket.onend (readline.js:194:10)
at Socket.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1241:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
On a consumption Azure plan, as it is mentioned in the example, this is working. Has someone any idea?