Not render phantom-pdf in WebApp Azure
-
Hi People.
I created a "webApp" in Azure and installed JsReport 2.5, but reports that use PDF I can not render.
If you use the engine "phantom-pdf" the error is:
Server Error. There was an unexpected error in the request processing.
If you use the "chrome-pdf" engine, the error is:
Error: Chromium revision is not downloaded. Run "npm install" or "yarn install" at Launcher.launch (/home/site/wwwroot/node_modules/puppeteer/lib/Launcher.js:119:15)
If you use the engine "xlsx" success is guaranteed for the file.
The installed packages are:
package.json"dependencies": { "jsreport": "2.5.0", "jsreport-phantom-pdf": "^2.2.0", "moment": "^2.24.0", "moment-timezone": "^0.5.25" }
Template
<html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> </head> <body> Test </body> </html>
-
Try docker based azure web app. The normal one is too limited to run stuff like chrome.
https://jsreport.net/blog/render-reports-using-azure-app-service