From a15d0864a7420b77ab974633846f670dceed6828 Mon Sep 17 00:00:00 2001 From: Jack Kavanagh Date: Tue, 12 Oct 2021 19:35:29 +0200 Subject: [PATCH] handle unreachable url (#4097) --- packages/insomnia-app/app/sync/git/http-client.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/insomnia-app/app/sync/git/http-client.ts b/packages/insomnia-app/app/sync/git/http-client.ts index eccf20a7f..a8d741e67 100644 --- a/packages/insomnia-app/app/sync/git/http-client.ts +++ b/packages/insomnia-app/app/sync/git/http-client.ts @@ -20,6 +20,10 @@ export const httpClient = { maxRedirects: 10, }); } catch (err) { + if (!err.response){ + // NOTE: config.url is unreachable + throw err; + } response = err.response; }