Skip to content

Commit c95b086

Browse files
committed
treat error in identity service as user is not found by email #334
1 parent c1ca0a2 commit c95b086

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/util.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,10 @@ _.assignIn(util, {
493493
},
494494
// set longer timeout as default 3000 could be not enough for identity service response
495495
timeout: 15000,
496+
}).catch(() => {
497+
// in case of any error happens during getting user by email
498+
// we treat such users as not found and don't return error
499+
// as per discussion in issue #334
496500
});
497501
};
498502
// send batch of requests, one batch at one time

0 commit comments

Comments
 (0)