-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Sentry doesn't respect next.js basePath
config when resolving stack frames
#9057
Comments
I've traced the issue to this sentry-javascript/packages/nextjs/src/common/devErrorSymbolicationEventProcessor.ts Lines 31 to 35 in cd0bc3b
|
Does this error happen when you build the app for production? |
No, it does not. In fact, no call to |
Thanks for investigating! Would you be interested in opening a PR, given that you already took the time to debug where this happens? If not, no worries. We'll backlog it and fix it (can't give you an ETA, though). |
If I find some time to make a PR, sure, but I am unfortunately very busy and this is quite low on my list at the moment (we usually have Sentry disabled during development and only use enable it to test that it's working at all, so it doesn't usually affect us). |
I see, no problem! Backlogging for now. |
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.69.0
Framework Version
13.4.4
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
next.config.js
setbasePath: '/some/path'
, and usewithSentryConfig
as normalExpected Result
The error metadata should be fetched correctly.
Actual Result
Sentry tries to fetch
/__nextjs_original-stack-frame
instead of/some/path/__nextjs_original-stack-frame
, causing a 404 error.The text was updated successfully, but these errors were encountered: