8000 Limit re-login to 401 error · DHLRPAadmin/orchestrator-nodejs@81706ab · GitHub
[go: up one dir, main page]

Skip to content

Commit 81706ab

Browse files
committed
Limit re-login to 401 error
1 parent 90524a0 commit 81706ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Orchestrator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Orchestrator.prototype._triggerQueueElementCallback = function (callback, err, d
128128
Orchestrator.prototype._processingResultHandlerFactory = function (element, isRetry) {
129129
var self = this;
130130
return function (err, data) {
131-
if (err && !isRetry) {
131+
if (err && err.statusCode === 401 && !isRetry) {
132132
self._login(function (err) { // attempt to login before retrying
133133
if (err) {
134134
self._credentials = undefined; // login failed so reset credentials

0 commit comments

Comments
 (0)
0