mirror of
https://github.com/NohamR/pdfy.git
synced 2026-10-10 18:29:55 +00:00
Increase timeout
This commit is contained in:
@@ -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))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user