From 53c2faed3d3a39f4c615ae26436c2ac8bc15fc64 Mon Sep 17 00:00:00 2001 From: andres Date: Tue, 14 Mar 2023 01:13:49 +0100 Subject: [PATCH] update base image --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6054538..c2a0095 100644 --- a/src/index.ts +++ b/src/index.ts @@ -102,7 +102,7 @@ const step6 = async (page: Page) => { } const scrape = async () => { - const browser = await chromium.launch() + const browser = await chromium.launch({ timeout: 200000 }) try { const page = await browser.newPage() console.log('scraping...') @@ -114,6 +114,7 @@ const scrape = async () => { await step6(page) await browser.close() } catch (e) { + console.error(e) await sendText(bot, JSON.stringify(e)) await browser?.close?.() }