increase navigation timeout to 30 seconds

This commit is contained in:
Hongbo Wu 2022-11-17 11:23:32 +08:00
parent c18217e697
commit 44e4e080dd

View file

@ -482,7 +482,7 @@ async function retrievePage(url, logRecord, functionStartTime) {
});
try {
const response = await page.goto(url, { timeout: 8 * 1000, waitUntil: ['networkidle2'] });
const response = await page.goto(url, { timeout: 30 * 1000, waitUntil: ['networkidle2'] });
const finalUrl = response.url();
const contentType = response.headers()['content-type'];