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) {
|
} 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
|
||||||
|
Loading…
Reference in New Issue
Block a user