-
Notifications
You must be signed in to change notification settings - Fork 113
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
Errors are not caught automatically from fetch()
#245
Comments
Just checked and yes, errors from |
@pi0 any suggestions here? I see that Nuxt sets the error on |
Actually, I couldn't watch that property as there is no reactivity on the server-side. |
Is there some existing code like that that I could take inspiration from? It wouldn't be hard to just call EDIT: I could create some simple hooks solution but I don't want to reinvent the wheel if there is something similar in use already. |
@rchl It is possible to use vue |
Version
@nuxtjs/sentry: 4.3.5
nuxt: 2.14.6
Sentry configuration
The default, client and server enabled
Reproduction Link
Not sure how to provide a reproducible example.
I'll just describe the steps to reproduce, it's pretty straight-forward:
Steps to reproduce
new Error('...')
in bothdata
andfetch
data
is reported, while the error fromfetch
isn'tWhat is Expected? What is actually happening?
The error from
fetch
should be reported automatically. It's not.I realize there's a section on
asyncData
in the readme, but I'm not sure if it is also meant to be about thefetch
method. Seems like maybe the readme is not up to date, because one can just use the new fetch instead ofasyncData
The text was updated successfully, but these errors were encountered: