Merge pull request #927 from omnivore-app/fix/content-fetch-timeout

Shorten the timeout requesting pages
This commit is contained in:
Jackson Harper 2022-07-05 11:35:06 -07:00 committed by GitHub
commit 620ace93d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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