-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Local Variables not being reported when hosting on Vercel #15544
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
Comments
If you set |
Thanks for the quick response! If I enable debug and call my test API route, the following gets logged on Vercel: Vercel logs
Perhaps the problem is that Also, I expected to find |
something in the vercel serverless environment is causing a delay in the worker to be initialized. I wonder if there is a problem with importing and using the inspector. Going to backlog this as a confirmed bug. |
Thanks! I'm also encountering the same issue. |
Hey, I'm afraid we don't have an estimate right now. Though we're in bug-bashing mode so we might get to it soon (TM). Unfortunately, fixing stuff on platforms like Vercel isn't always easy. |
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
9.2.0
Framework Version
Next 15.2.0
Link to Sentry event
https://aerial-ops.sentry.io/issues/6340230618/events/4b04a367762c4da59f3ffc5d112adccb/?project=6255059
Reproduction Example/SDK Setup
GitHub repo: https://github.com/cau777/temp-sentry-nextjs-localvars
Steps to Reproduce
npx create-next-app@latest temp-sentry-nextjs-localvars
npx @sentry/wizard@latest -i nextjs
includeLocalVariables: true
tosentry.server.config.ts
pages/api
, for example:SENTRY_AUTH_TOKEN
to the env variables in VercelExpected Result
When navigating to the test API route on the deployed app, an error should be reported to Sentry, containing all 3 local variables from the
willThrow
function.Actual Result
No local variables appear in the Sentry issue when the app is deployed on Vercel.
However, running the same code locally
npm run dev
reports local variables to Sentry as expected.https://aerial-ops.sentry.io/issues/6340144143/events/d4f46bc86efa400db9fac4c8c8f5e8c1/?project=6255059
Vercel apps are deployed on AWS Lambda, maybe the debugger used by Sentry to extract local variables doesn't work in that environment?
The text was updated successfully, but these errors were encountered: