We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
One good place to put some global error handlers is on the responseInterceptor, but looks like it is not being called when the request errors.
responseInterceptor: (response, { store, redirect }) => { console.log('response', response) if (response.status.code == 401) { store.dispatch('logout') redirect('/login') } return response }
using version: 4.3.0
The text was updated successfully, but these errors were encountered:
Yeah, I got the same problem here.
Sorry, something went wrong.
I'm already set disableDefaultErrorHandler to true, but still nothing happens..
+1
With 5.x version, we have deprecated responseInterceptor. Instead, there is a better solution to use nuxt plugins.
5.x
responseInterceptor
Please see Extending Axios section and don't forget to migration guide :)
No branches or pull requests
One good place to put some global error handlers is on the responseInterceptor, but looks like it is not being called when the request errors.
using version: 4.3.0
The text was updated successfully, but these errors were encountered: