-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interceptor does not work with multiple interceptors when attempting to pause #156
Comments
I'm having the same problem. Did anybody ever figure this out? |
Any updates? |
I am having the same issue here. When having two simultaneous request with |
I remove
|
lol, I wrote my own Interceptor middleware and I am struggling with exactly same issue now 😅 |
I am using this library to pause requests that fail with a 401 and attempt to refresh a token when these requests fail. My use also involves attaching
request
andresponse
interceptors.Here' the code I'm working with -
From the approach above, the requests don't seem to get paused for some reason? Is there an issue with how I'm approaching it.
If I uncomment the request and response interceptors, thecreateAuthRefreshLogic
interceptor does not get invoked. Anything I'm doing wrong?Update
I was able to get a part of the request and response interceptors to work with the createAuthRefreshLogic function.
However, trying to handle the errors within the response interceptor causes
createAuthRefreshLogic
to not be invoked, but I still see two 401 requests while neither seem to be paused.Here's a screen shot of the network requests failing. The 401s don't seem to be getting paused.
The text was updated successfully, but these errors were encountered: