From c48824391c999c040dd07901084e1c8b733e7108 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 2 Jun 2018 20:56:03 +0200 Subject: [PATCH] Bug fixes fileStorage removed, new error code at Storage --- BlobStorage.js | 6 ++++-- IndicatorBotProcessMainLoop.js | 3 +-- Run.js | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/BlobStorage.js b/BlobStorage.js index 9b91113d9..942d48e6d 100644 --- a/BlobStorage.js +++ b/BlobStorage.js @@ -135,7 +135,8 @@ exports.newBlobStorage = function newBlobStorage(BOT) { || err.code === 'ESOCKETTIMEDOUT' || err.code === 'ETIMEDOUT' || err.code === 'ECONNREFUSED' - || (err.code === 'AuthenticationFailed' && err.authenticationerrordetail.indexOf('Request date header too old') === 0)) { + || (err.code === 'AuthenticationFailed' && err.authenticationerrordetail.indexOf('Request date header too old') === 0) + || err.code === 'OperationTimedOut') { setTimeout(secondTry, 1000); return; @@ -214,7 +215,8 @@ exports.newBlobStorage = function newBlobStorage(BOT) { || err.code === 'ESOCKETTIMEDOUT' || err.code === 'ETIMEDOUT' || err.code === 'ECONNREFUSED' - || (err.code === 'AuthenticationFailed' && err.authenticationerrordetail.indexOf('Request date header too old') === 0)) { + || (err.code === 'AuthenticationFailed' && err.authenticationerrordetail.indexOf('Request date header too old') === 0) + || err.code === 'OperationTimedOut') { setTimeout(secondTry, 1000); return; diff --git a/IndicatorBotProcessMainLoop.js b/IndicatorBotProcessMainLoop.js index 0f8e6ac57..1c7f9caf8 100644 --- a/IndicatorBotProcessMainLoop.js +++ b/IndicatorBotProcessMainLoop.js @@ -146,7 +146,6 @@ const UTILITIES = require(ROOT_DIR + 'CloudUtilities'); const BLOB_STORAGE = require(ROOT_DIR + 'BlobStorage'); - const FILE_STORAGE = require(ROOT_DIR + 'FileStorage'); const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog'); const STATUS_REPORT = require(ROOT_DIR + 'StatusReport'); const STATUS_DEPENDENCIES = require(ROOT_DIR + 'StatusDependencies'); @@ -229,7 +228,7 @@ if (FULL_LOG === true) { logger.write("[INFO] run -> loop -> initializeUserBot -> Entering function."); } - usertBot = USER_BOT_MODULE.newUserBot(bot, COMMONS_MODULE, UTILITIES, DEBUG_MODULE, BLOB_STORAGE, FILE_STORAGE); + usertBot = USER_BOT_MODULE.newUserBot(bot, COMMONS_MODULE, UTILITIES, DEBUG_MODULE, BLOB_STORAGE); usertBot.initialize(statusDependencies, pMonth, pYear, onInizialized); diff --git a/Run.js b/Run.js index 007885fa7..f8063d501 100644 --- a/Run.js +++ b/Run.js @@ -2,7 +2,7 @@ global.CURRENT_ENVIRONMENT = "Develop"; global.CURRENT_EXECUTION_AT = "Cloud"; global.SHALL_BOT_STOP = false; -global.USER_LOGGED_IN = "ciencias"; +global.USER_LOGGED_IN = "Ciencias"; global.DEV_TEAM = "AAMasters"; global.AT_BREAKPOINT = false; // This is used only when running at the browser.