Fixed node hanging on unnecessary timeout when fetchJson fails.
This commit is contained in:
parent
e2c830b639
commit
fdf2253218
@ -144,6 +144,7 @@ export function fetchJson(connection: string | ConnectionInfo, json?: string, pr
|
||||
} catch (error) {
|
||||
response = (<any>error).response;
|
||||
if (response == null) {
|
||||
runningTimeout.cancel();
|
||||
logger.throwError("missing response", Logger.errors.SERVER_ERROR, {
|
||||
serverError: error,
|
||||
url: url
|
||||
|
Loading…
Reference in New Issue
Block a user