diff --git a/.vs/AACloud/v15/.suo b/.vs/AACloud/v15/.suo index e61e38186..bd6880ecb 100644 Binary files a/.vs/AACloud/v15/.suo and b/.vs/AACloud/v15/.suo differ diff --git a/File Storage.js b/File Storage.js index 566b12b3f..804cfc220 100644 --- a/File Storage.js +++ b/File Storage.js @@ -167,7 +167,8 @@ exports.newFileStorage = function newFileStorage(BOT) { if (err.message.indexOf("The server is busy") > 0 || err.code === 'ECONNRESET' || err.code === 'ENOTFOUND' - || err.code === 'ESOCKETTIMEDOUT') { + || err.code === 'ESOCKETTIMEDOUT' + || err.code === 'ETIMEDOUT') { setTimeout(secondTry, 1000); return; @@ -243,7 +244,8 @@ exports.newFileStorage = function newFileStorage(BOT) { if (err.message.indexOf("The server is busy") > 0 || err.code === 'ECONNRESET' || err.code === 'ENOTFOUND' - || err.code === 'ESOCKETTIMEDOUT') { + || err.code === 'ESOCKETTIMEDOUT' + || err.code === 'ETIMEDOUT') { setTimeout(secondTry, 1000); return; diff --git a/Poloniex API Client.js b/Poloniex API Client.js index 9ee3bf2b6..b5656b1f0 100644 --- a/Poloniex API Client.js +++ b/Poloniex API Client.js @@ -401,9 +401,11 @@ logger.write("[INFO] analizeResponse -> exchangeResponse = " + JSON.stringify(exchangeResponse)); if ( - JSON.stringify(exchangeErr).indexOf("ETIMEDOUT") > 0 || JSON.stringify(exchangeResponse).indexOf("Connection timed out") > 0 || JSON.stringify(exchangeResponse).indexOf("Connection Error") > 0 || + JSON.stringify(exchangeErr).indexOf("ETIMEDOUT") > 0 || + JSON.stringify(exchangeErr).indexOf("ENOTFOUND") > 0 || + JSON.stringify(exchangeErr).indexOf("ESOCKETTIMEDOUT") > 0 || JSON.stringify(exchangeErr).indexOf("ECONNRESET") > 0) { logger.write("[WARN] analizeResponse -> Timeout reached or connection problem while trying to access the Exchange API. Requesting new execution later.");