Skip to content

Commit b57e9cf

Browse files
committed
add --no-sandbox to puppeteer args
1 parent d376367 commit b57e9cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/gather/gather-single-telemetry.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
const puppeteer = require('puppeteer');
22
const { setTelemetryWithKey } = require('../utils/telemetry');
33

4-
const DEFAULT_PUPPETEER_ARGS = { ignoreHTTPSErrors: true };
4+
const DEFAULT_PUPPETEER_ARGS = {
5+
ignoreHTTPSErrors: true,
6+
args: ['--no-sandbox', '--disable-setuid-sandbox'],
7+
};
58

69
module.exports = async function gatherSingleTelemetry(url, options = {}, gatherFn, ...args) {
710
const browser = await puppeteer.launch(DEFAULT_PUPPETEER_ARGS);

0 commit comments

Comments
 (0)