No Exchange Response Handled

This commit is contained in:
Luis Fernando Molina committed 2018-07-29 00:25:55 +02:00
1 parent 7ff13067a1
commit 70b066822d
1 file changed
+8
+8
View File
@@ -415,6 +415,14 @@
if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] analizeResponse -> exchangeErr = " + stringExchangeErr); }
if (LOG_FILE_CONTENT === true) { logger.write(MODULE_NAME, "[INFO] analizeResponse -> exchangeResponse = " + stringExchangeResponse); }
if (stringExchangeResponse === undefined) {
logger.write(MODULE_NAME, "[WARN] analizeResponse -> No response received from the exchange. Retrying Later.");
notOkCallBack(global.DEFAULT_RETRY_RESPONSE);
return;
}
if (stringExchangeErr.indexOf("ETIMEDOUT") > 0 ||
stringExchangeErr.indexOf("ENOTFOUND") > 0 ||
stringExchangeErr.indexOf("ECONNREFUSED") > 0 ||