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

Next API route does not auto-capture errors #8404

Closed
3 tasks done
scefali opened this issue Jun 27, 2023 · 2 comments
Closed
3 tasks done

Next API route does not auto-capture errors #8404

scefali opened this issue Jun 27, 2023 · 2 comments
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK Type: Bug

Comments

@scefali
Copy link
Contributor

scefali commented Jun 27, 2023

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

7.56

Framework Version

React 18.2

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

Just running the repo with this route: https://github.com/scefali/ai-getting-started/blob/feat/add-sentry/src/app/api/txt2img/route.ts

Expected Result

If there are errors, they should go to Sentry

Actual Result

No errors in Sentry

@AbhiPrasad
Copy link
Member

I was able to validate that no error or transaction is created when I hit this route locally (both via frontend and curl), which is done here https://github.com/scefali/ai-getting-started/blob/28145e79f90cb2ea4eb52cfd7a4484195646c14e/src/components/TextToImgModal.tsx#L21. I think the route is not getting auto-wrapped for some reason.

A discover query of my test data.

After starting the next server, you can just curl -X POST localhost:3000/api/txt2img to confirm this. You don't need to even set up clerk.

@AbhiPrasad AbhiPrasad added Package: nextjs Issues related to the Sentry Nextjs SDK Status: Backlog labels Jun 27, 2023
@lforst
Copy link
Member

lforst commented Jun 27, 2023

This is not implemented yet and tracked here #7228

@lforst lforst closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants