Increase timeout

This commit is contained in:
√(noham)²
2026-06-19 22:02:27 +02:00
parent 14bdb440a8
commit 5fbfc4e992

View File

@@ -62,7 +62,7 @@ export async function convert (url, options = {}) {
if (html) { if (html) {
await articlePage.setContent(html, { waitUntil: 'networkidle0' }) await articlePage.setContent(html, { waitUntil: 'networkidle0' })
} else { } else {
await articlePage.goto(url, { waitUntil: 'networkidle0', timeout: 30000 }) await articlePage.goto(url, { waitUntil: 'networkidle0', timeout: 60000 })
} }
const article = await extractArticle(articlePage, getReadabilityPath()) const article = await extractArticle(articlePage, getReadabilityPath())
await articlePage.close() await articlePage.close()
@@ -95,7 +95,7 @@ export async function convert (url, options = {}) {
logger.debug(`Opening Reader View: ${readerUrl}`) logger.debug(`Opening Reader View: ${readerUrl}`)
const readerPage = await browser.newPage() const readerPage = await browser.newPage()
await readerPage.goto(readerUrl, { waitUntil: 'load', timeout: 30000 }) await readerPage.goto(readerUrl, { waitUntil: 'load', timeout: 60000 })
await waitForReaderView(readerPage) await waitForReaderView(readerPage)
await new Promise((resolve) => setTimeout(resolve, 1000)) await new Promise((resolve) => setTimeout(resolve, 1000))