From abb2c99ecdf3885a06e24d16495275ce33e1ee40 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 13 Jan 2022 04:26:51 -0800 Subject: [PATCH] Increase timeout for icon download Summary: As mentioned in D33427938 (https://github.com/facebook/flipper/commit/b05219d09ca45bea5e638cf803c66bb0c2e22f52), we need to keep this way higher for now as there's something strange going on with the assets endpoint. Reviewed By: lblasa, mweststrate, aigoncharov Differential Revision: D33565547 fbshipit-source-id: 6ce9e3371c9fa8f1bf74dd0fd5f3353d99dc2a58 --- desktop/scripts/build-icons.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/scripts/build-icons.ts b/desktop/scripts/build-icons.ts index b9b6fdd17..0169648d6 100644 --- a/desktop/scripts/build-icons.ts +++ b/desktop/scripts/build-icons.ts @@ -53,7 +53,7 @@ export async function downloadIcons(buildFolder: string) { const url = getPublicIconUrl(icon); return fetch(url, { retryOptions: { - retryMaxDuration: 30 * 1000, + retryMaxDuration: 120 * 1000, // Be default, only 5xx are retried but we're getting the odd 404 // which goes away on a retry for some reason. retryOnHttpResponse: (res) => res.status >= 400,