Skip to content

Errors are not caught automatically from fetch() #245

@judehunter

Description

@judehunter

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

  1. Create a page component
  2. Throw a new Error('...') in both data and fetch
  3. Visit the page and observe that the error from data is reported, while the error from fetch isn't

What 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 the fetch method. Seems like maybe the readme is not up to date, because one can just use the new fetch instead of asyncData

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions