From debd2a8693e7f83296d8c2ae645e9d1f536fe0e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20S=C3=A1nchez?= Date: Wed, 12 Aug 2020 07:52:43 +0200 Subject: [PATCH] Added puppeteer no-sandbox --- print/core/report.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/print/core/report.js b/print/core/report.js index 75eb66962..e773c6c91 100644 --- a/print/core/report.js +++ b/print/core/report.js @@ -28,7 +28,10 @@ class Report extends Component { if (fs.existsSync(fullPath)) options = require(optionsPath); - const browser = await puppeteer.launch({headless: true}); + const browser = await puppeteer.launch({ + headless: true, + args: ['--no-sandbox', '--disable-setuid-sandbox'] + }); const page = await browser.newPage(); await page.setContent(template);