From 8ec72a46b4201729353a70a58622f163ffa4b447 Mon Sep 17 00:00:00 2001 From: Jan Marcano Date: Thu, 28 Jul 2022 16:37:10 -0300 Subject: [PATCH] Fix Alias GET failing on first fetch --- .../extension/src/background/messaging/internalMethods.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/extension/src/background/messaging/internalMethods.ts b/packages/extension/src/background/messaging/internalMethods.ts index 9fc7d5b3..20de3930 100644 --- a/packages/extension/src/background/messaging/internalMethods.ts +++ b/packages/extension/src/background/messaging/internalMethods.ts @@ -1241,7 +1241,9 @@ export class InternalMethods { clearTimeout(timerId); }; // We save the fetch request to later execute all in parallel - const apiCall = fetch(apiURL, { signal: controller.signal }).then(handleResponse); + const apiCall = fetch(apiURL, { signal: controller.signal }) + .then(handleResponse) + .catch(() => []); apiFetches.push(apiCall); } else { returnedAliasedAddresses[namespace] = aliasesMatchingInNamespace;