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
Javascript error stack trace shows outdated source code inconsistent and unrelated with the error, probably previously cached #69779
Comments
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-issues for triage ⏲️ |
Thanks for writing in the ticket! One question just so we can get a better sense of what is happening, if you trigger the error again, does the new event in Sentry still show the outdated stacktrace or is it up to date now? |
Now it's up to date. |
thanks for confirming, you also mentioned that the code being shown was code you had , but you had edited it. do you remember how long it was after you edited the code when you triggered the error? if you can't remember, that's ok! we should be able to look into it given the info that we have |
In the order of a couple of seconds. Maybe even less than a second (the time it takes to move from the terminal window where I was remotely editing it on the server, to the browser window and hit refresh) or a few second at most (assuming I had to partially type the url back into the browser's address bar as opposed to just refreshing an already-open page). |
thanks for the info - i've followed up with the team and we will continue to look into why this happened and try to fix it! |
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
This triggers an error on purpose in order to test Sentry.
Expected Result
The stack trace should look more or less something like this (this is what I get in the browser):
where
<XXXX>
is whatever you want to call the root of my html document.You don't have to show me the source code for context. If you do, I very much appreciate it, but then it has to be the true, exact source code as it was when the error was triggered. Anything else is unacceptable and worse than nothing.
Actual Result
The stack trace that Sentry shows me looks like this this:
Let me highlight it:
The stack trace is correct, but the source code that is shown is NOT the actual source code. It is NOT the source code as it was when the error happened (it couldn't possibly be, you can see that the stack trace reference a function that is not there), and it is NOT the source code as it is right now.
The source code that is being shown is what the source code was several minutes before the error happened, when another different error was captured.
Product Area
Unknown
Link
No response
DSN
No response
Version
No response
The text was updated successfully, but these errors were encountered: