-
Notifications
You must be signed in to change notification settings - Fork 245
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 for 404 with error method not working #310
Comments
Anything happening on this one? Or are there any way to solve this? I would like to show a proper error page to the user without redirecting (which works), or show the nuxt default error page. |
this is a much needed feature as it gives ability to modularize lot of implementations |
the same error I got, any solutions? |
Same error, any updates? |
This is an issue we have definitely struggled with as well. |
@pi0 |
Hi @msonowal. I believe v5.12.3 uses latest version of axios (v0.21.0). Trying to locally check. |
@pi0 sorry it was the wrong thread I replied and pinged sorry for the mistakes |
I am still experiencing this issue. Calling the "@nuxtjs/axios": "^5.12.3",
"nuxt": "^2.14.9", |
This problem is still occurring.
|
Version
v5.8.0
Reproduction link
https://github.com/msonowal/nuxt-bug-reproduce-link
Steps to reproduce
add this in
plugins
dir make file name itaxios.js
and add the link in nuxt config plugins array
visit any route whose axios calls are 404
axios.js file content below
What is expected ?
show the error response with 404 code as defined in the nuxt app
Post not found from interceptor
but
not redirect to 301
What is actually happening?
it is showing default nuxt error
NuxtServerError
Request failed with status code 404
The text was updated successfully, but these errors were encountered: