Skip to content
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

Does this work with the Node server in Nuxt.js? #406

Closed
patrickbjohnson opened this issue Mar 22, 2022 · 6 comments
Closed

Does this work with the Node server in Nuxt.js? #406

patrickbjohnson opened this issue Mar 22, 2022 · 6 comments
Labels

Comments

@patrickbjohnson
Copy link

We need to track errors on our API endpoints and we'd love to use this module as its already included for the client side. Aside from the disable based server side configurations there is no documentation that helps us understand/outline how to use this on the node/API side of Nuxt.js

@rchl
Copy link
Member

rchl commented Mar 23, 2022

It depends how you API is structured. It typically should work by default, if your API "trees" allow the errors to fallback to the Sentry's error handler. But if you are gonna add your own error handlers and terminate the "tree" then it won't fall back to to that and then you need to explicitly add Sentry error handlers in your middleware.

@patrickbjohnson
Copy link
Author

@rchl are there any docs pointing to this? Mostly what we're attempting to do is actually log specific errors from third party services within our API. As an example, we send transaction emails and on error of that service we want to log the error with sentry.

However this.$sentry is not accessible but we can't find any documentation that would tell us otherwise.

@rchl
Copy link
Member

rchl commented Mar 23, 2022

On the API side you have process.sentry.

@patrickbjohnson
Copy link
Author

patrickbjohnson commented Mar 23, 2022 via email

@rchl rchl closed this as completed Mar 24, 2022
@patrickbjohnson
Copy link
Author

Sorry to continue this thread but seems like process.sentry is not defined.Any ideas? Ultimately if there are documentation I can review happy to look at those!

@rchl
Copy link
Member

rchl commented Mar 25, 2022

You need to provide more info / code on what you are doing exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants