From aec2ae2be93bf156f651c5d389e691a4d04d636f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 29 Jul 2018 09:48:27 +0200 Subject: [PATCH] New condition, NONCE collition --- CloudVM/PoloniexAPIClient.js | 5 +++-- Exchanges/PoloniexAPIClient.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CloudVM/PoloniexAPIClient.js b/CloudVM/PoloniexAPIClient.js index f292d0ff1..e8f124edb 100644 --- a/CloudVM/PoloniexAPIClient.js +++ b/CloudVM/PoloniexAPIClient.js @@ -50,10 +50,11 @@ stringExchangeResponse.indexOf("Connection timed out") > 0 || stringExchangeResponse.indexOf("Connection Error") > 0 || stringExchangeResponse.indexOf("Bad gateway") > 0 || + stringExchangeResponse.indexOf("Nonce must be greater than") > 0 || stringExchangeResponse.indexOf("Internal error. Please try again") > 0))) { - logger.write(MODULE_NAME, "[WARN] analizeResponse -> Timeout reached or connection problem while trying to access the Exchange API. Requesting new execution later."); - logger.write(MODULE_NAME, "[WARN] analizeResponse -> stringExchangeErr = " + stringExchangeErr); + logger.write(MODULE_NAME, "[ERROR] analizeResponse -> Somethng bad happened while trying to access the Exchange API. Requesting new execution later."); + logger.write(MODULE_NAME, "[ERROR] analizeResponse -> stringExchangeErr = " + stringExchangeErr); notOkCallBack(window.DEFAULT_RETRY_RESPONSE); return; diff --git a/Exchanges/PoloniexAPIClient.js b/Exchanges/PoloniexAPIClient.js index 328f88f40..f1950f295 100644 --- a/Exchanges/PoloniexAPIClient.js +++ b/Exchanges/PoloniexAPIClient.js @@ -432,10 +432,11 @@ stringExchangeResponse.indexOf("Connection timed out") > 0 || stringExchangeResponse.indexOf("Connection Error") > 0 || stringExchangeResponse.indexOf("Bad gateway") > 0 || + stringExchangeResponse.indexOf("Nonce must be greater than") > 0 || stringExchangeResponse.indexOf("Internal error. Please try again") > 0))) { - logger.write(MODULE_NAME, "[WARN] analizeResponse -> Timeout reached or connection problem while trying to access the Exchange API. Requesting new execution later."); - logger.write(MODULE_NAME, "[WARN] analizeResponse -> stringExchangeErr = " + stringExchangeErr); + logger.write(MODULE_NAME, "[ERROR] analizeResponse -> Somethng bad happened while trying to access the Exchange API. Requesting new execution later."); + logger.write(MODULE_NAME, "[ERROR] analizeResponse -> stringExchangeErr = " + stringExchangeErr); notOkCallBack(global.DEFAULT_RETRY_RESPONSE); return;