Closed nimrin closed 9 years ago
Any reason for closing the issue without an explanation?
I realized that I can use httpBuffer to reject promise when handling 'event:auth-loginRequired' event.
I tried to call httpBuffer.rejectAll() in 'event:auth-loginRequired' handler, but it takes no effect. Question is still actual.
My mistake, I used rejectAll() without any parameter.
@nimrin Can you post some sample code for how you fixed this? I'm facing the exact same issue. Are you always calling httpBuffer.rejectAll()
, or only under certain scenarios?
@nimrin Figured it out. The solution is actually much simpler than you described. authService.loginCancelled()
just needed to be called with a second parameter to provide as the promise rejection.
@ronaldheft would you give me more detail about the solution. I'm still confused now.
Hello. I am using angular-loading-bar. A 401 should be considered an error response, otherwise loading spinner never stops.
Have you any idea how to handle this issue?