It seems to have some issue with disabling puppeteer timeout by setting it to 0.

So I set the timeout to 2 minutes which should be enough and it works in my local env
This commit is contained in:
Hongbo Wu 2022-08-26 11:54:33 +08:00
parent 8b46997b4a
commit e52013ccb1

View file

@ -110,7 +110,7 @@ const getBrowserPromise = (async () => {
defaultViewport: { height: 1080, width: 1920 },
executablePath: process.env.CHROMIUM_PATH ,
headless: !!process.env.LAUNCH_HEADLESS,
timeout: 0,
timeout: 120000, // 2 minutes
});
})();