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
Darwin
v18.12.0
3.2.3
2.2.3
npm@9.4.2
vite
imports
components
runtimeConfig
-
x
Sorry for my english, I have a wrapper over $fetch in which I catch a 401 error and try to request a new token and repeat the original request
but when I call the http function again in the catch I get a nuxt instance unavailable error
No response
The text was updated successfully, but these errors were encountered:
Hi 👋 that's probably because it is called within or after a promise
Sorry, something went wrong.
Related: #14723, #14269 (comment). For more help, a reproduction is needed though.
Almost certainly the issue is the second http call after an error - which will trigger (again) a call to useRuntimeConfig() which will at this point be disconnected from the Nuxt context. See https://nuxt.com/docs/guide/concepts/auto-imports#using-vue-and-nuxt-composables for more info.
http
useRuntimeConfig()
No branches or pull requests
Environment
Darwin
v18.12.0
3.2.3
2.2.3
npm@9.4.2
vite
imports
,components
,runtimeConfig
-
-
Reproduction
x
Describe the bug
Sorry for my english,
I have a wrapper over $fetch in which I catch a 401 error and try to request a new token and repeat the original request
but when I call the http function again in the catch I get a nuxt instance unavailable error
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: