From 2f8dab4614e40dc0833661e050ab160071f6023c Mon Sep 17 00:00:00 2001 From: Nulo Date: Fri, 22 Dec 2023 14:41:26 -0300 Subject: [PATCH] aumentar timeout --- scraper/fetch.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scraper/fetch.ts b/scraper/fetch.ts index 0f78c6c..733eacc 100644 --- a/scraper/fetch.ts +++ b/scraper/fetch.ts @@ -8,6 +8,7 @@ export async function getHtml(url: string) { "Accept-Encoding": "gzip, deflate, br", }, throwOnError: true, + bodyTimeout: 10 * 60 * 1000, }); let output: Buffer; switch (res.headers["content-encoding"]) {