New err.code found to consider when accessing azure storage

This commit is contained in:
Luis Fernando Molina committed 2018-05-29 08:32:20 +02:00
1 parent 2bc5b2408c
commit b69a638fee
1 file changed
+4 -2
+4 -2
View File
@@ -134,7 +134,8 @@ exports.newBlobStorage = function newBlobStorage(BOT) {
|| err.code === 'ENOTFOUND'
|| err.code === 'ESOCKETTIMEDOUT'
|| err.code === 'ETIMEDOUT'
|| err.code === 'ECONNREFUSED') {
|| err.code === 'ECONNREFUSED'
|| (err.code === 'AuthenticationFailed' && err.authenticationerrordetail.indexOf('Request date header too old') === 0)) {
setTimeout(secondTry, 1000);
return;
@@ -212,7 +213,8 @@ exports.newBlobStorage = function newBlobStorage(BOT) {
|| err.code === 'ENOTFOUND'
|| err.code === 'ESOCKETTIMEDOUT'
|| err.code === 'ETIMEDOUT'
|| err.code === 'ECONNREFUSED') {
|| err.code === 'ECONNREFUSED'
|| (err.code === 'AuthenticationFailed' && err.authenticationerrordetail.indexOf('Request date header too old') === 0)) {
setTimeout(secondTry, 1000);
return;