Fix WhatsApp gateway Network.enable timeout via puppeteer args and webVersionCache none
This commit is contained in:
parent
db78f0c8ba
commit
cfb5ca2d5c
|
|
@ -27,10 +27,20 @@ const client = new Client({
|
||||||
puppeteer: {
|
puppeteer: {
|
||||||
headless: true,
|
headless: true,
|
||||||
executablePath: '/usr/bin/chromium-browser',
|
executablePath: '/usr/bin/chromium-browser',
|
||||||
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage'],
|
args: [
|
||||||
|
'--no-sandbox',
|
||||||
|
'--disable-setuid-sandbox',
|
||||||
|
'--disable-dev-shm-usage',
|
||||||
|
'--disable-gpu',
|
||||||
|
'--disable-software-rasterizer',
|
||||||
|
'--disable-extensions',
|
||||||
|
'--no-zygote',
|
||||||
|
'--single-process'
|
||||||
|
],
|
||||||
protocolTimeout: 120000,
|
protocolTimeout: 120000,
|
||||||
timeout: 120000
|
timeout: 120000
|
||||||
}
|
},
|
||||||
|
webVersionCache: { type: 'none' }
|
||||||
});
|
});
|
||||||
|
|
||||||
let isReady = false;
|
let isReady = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue