-
Notifications
You must be signed in to change notification settings - Fork 41
Sourcemaps are uploaded but not used #655
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
Hi, can you check the logs of your self-hosted |
Hey. The logs look like this
I didn't see any error messages or warnings. |
I'm experiencing what appears likely to be the same issue: self-hosted Sentry (24.12.1), @sentry/vite-plugin (2.23.0) that says the source maps are uploaded successfully, Sentry shows uploaded source maps in the project settings (with the upload ID and debug IDs reported by the Vite plugin, and that correspond to the debug IDs that got baked into the source files), but it isn't making connections when the issues are reported by the Sentry JS plugin (7.120.3). I haven't dug in to see exactly how they're supposed to be correlated on the server side, so a few observations of things that don't quite line up:
You may have noticed our source maps are fairly large, so even though the files are accessible to Sentry, it doesn't seem to pull them down, so I can't quite confirm the same symptoms that @poskadesign is seeing, though the issue feels very similar. (I believe that change in Sentry happened years ago, which is why we push source maps directly.) Despite commenting on this issue today, this is not necessarily a particularly new issue for us: I don't know if we've ever had working source maps since we switched to Vite several months ago, I just got time this week to investigate, update everything to the latest versions, and try to resolve the problem. (I also don't know where the issue lies: it could be the plugin not uploading correctly, or it could be the server not correlating source maps and debug IDs.) |
@aschmitz you have a |
Also please share screenshots and event payloads of the events if you're able to! |
Regarding the On the Sentry page for the event, I'm not seeing an "unminify code" button, but there is a "Minified" checkbox under the three-dot menu on the Stack Trace section. Unfortunately, it is greyed out, and has a tooltip saying "Minified version not available". I'm also not sure how to get the full event payload, but I pulled the JSON from the three-dot menu next to Event ID, lightly redacted it, and that's this: event_redacted.json . I have a lightly-redacted version of the Sentry issue screenshot, as well: Issue Page. The "Full Event Details" page looks to be nearly identical, but if there's something else there you'd like a screenshot of, let me know. |
@aschmitz payload looks good. Your guess that the filenames are different is unrelated. Can you please check the logs of your |
Hey @lforst. When you say simbolicator, do you mean
As an update, I recently upgraded to Sentry 25 and still have the same issues.
I've been trying a lot of different variations of my config (using different paths for I even deployed the source maps publicly, Chrome picks them up no problem: |
@poskadesign No I mean the |
Environment
Running a self-hosted version of Sentry. Deploying a static React app (Vite builder, Vercel for deployment)
vite.config.ts
production
build.Steps to Reproduce
After a deployment, if the sourcemaps are exposed on the server, Sentry picks them up and uses them in Issues. But once I use
filesToDeleteAfterUpload
to remove them, it stops resolving even though they are successfully uploaded.Expected Result
Sourcemaps are used to resolve stack traces in the Issues tab.
Actual Result
Issues tab still shows the minified version.
Can you please help me debug this? I've sat for several days on this and can't sort it out.
The text was updated successfully, but these errors were encountered: