From 919030961fd759a6c9fca99bdd03be368a9c2a1c Mon Sep 17 00:00:00 2001 From: Matthew RONCHETTO Date: Fri, 19 Apr 2024 18:19:18 -0700 Subject: [PATCH] fix: bump timeout from 10ms to 10000ms/10s --- src/build/icons.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build/icons.ts b/src/build/icons.ts index d4c4868c..a1953a49 100644 --- a/src/build/icons.ts +++ b/src/build/icons.ts @@ -43,7 +43,7 @@ async function getIcon(product: Product) { for (const hostname of product.hostnames) { try { const homeUrl = "http://" + hostname; - const response = await axios.get(homeUrl, { timeout: 10 }); + const response = await axios.get(homeUrl, { timeout: 10000 }); const soup = new JSSoup(response.data); for (const link of soup.findAll("link")) { if ( @@ -89,7 +89,7 @@ async function getIcon(product: Product) { const icon = await axios .get(iconUrl, { responseType: "arraybuffer", - timeout: 10, + timeout: 10000, }) .then((response) => Buffer.from(response.data, "binary")); const dimensions = sizeOf(icon);