From 0b25094b958bd9b9ef4558f59e600b645516994a Mon Sep 17 00:00:00 2001 From: nicolas Date: Fri, 24 Jul 2020 11:36:41 -0300 Subject: [PATCH] Set timeout to Safe-Apps fetch (#1158) Co-authored-by: Mikhail Mikheev --- src/routes/safe/components/Apps/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/safe/components/Apps/utils.ts b/src/routes/safe/components/Apps/utils.ts index 3cf0e9b1..ccf77cdb 100644 --- a/src/routes/safe/components/Apps/utils.ts +++ b/src/routes/safe/components/Apps/utils.ts @@ -51,7 +51,7 @@ export const getAppInfoFromUrl = async (appUrl?: string): Promise => { const noTrailingSlashUrl = removeLastTrailingSlash(res.url) try { - const appInfo = await axios.get(`${noTrailingSlashUrl}/manifest.json`) + const appInfo = await axios.get(`${noTrailingSlashUrl}/manifest.json`, { timeout: 5_000 }) // verify imported app fulfil safe requirements if (!appInfo || !appInfo.data || !appInfo.data.name || !appInfo.data.description) {