handle unreachable url (#4097)

This commit is contained in:
Jack Kavanagh 2021-10-12 19:35:29 +02:00 committed by GitHub
parent 70da2acafb
commit a15d0864a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,10 @@ export const httpClient = {
maxRedirects: 10,
});
} catch (err) {
if (!err.response){
// NOTE: config.url is unreachable
throw err;
}
response = err.response;
}