Fixed node hanging on unnecessary timeout when fetchJson fails.

This commit is contained in:
Richard Moore 2020-05-12 16:55:14 -04:00
parent e2c830b639
commit fdf2253218
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -144,6 +144,7 @@ export function fetchJson(connection: string | ConnectionInfo, json?: string, pr
} catch (error) { } catch (error) {
response = (<any>error).response; response = (<any>error).response;
if (response == null) { if (response == null) {
runningTimeout.cancel();
logger.throwError("missing response", Logger.errors.SERVER_ERROR, { logger.throwError("missing response", Logger.errors.SERVER_ERROR, {
serverError: error, serverError: error,
url: url url: url