You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call adapter(error.config), the effect is that the endpoint is called again, but I don't think axios-mock-adapter recognizes it as being the same call. Is this a bug, or expected? Is there a way I can work around it?
The text was updated successfully, but these errors were encountered:
@sslotsky i've got a fix for this issue in PR #119. As a workaround, you can do the following in your interceptor before you call return adapter(error.config):
Testing some re-authentication logic that retries a request after refreshing. Snippet should be fairly explanatory:
The first call to
endpoint
gives me a 401, but the second one gives me a 404. I suspect it's due to the way I'm executing the second call:When I call
adapter(error.config)
, the effect is that the endpoint is called again, but I don't thinkaxios-mock-adapter
recognizes it as being the same call. Is this a bug, or expected? Is there a way I can work around it?The text was updated successfully, but these errors were encountered: