sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Stack frame path doesn't match a source file artifact name

Open orcuntuna opened this issue 6 months ago • 4 comments

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Steps to Reproduce

I'm using the Sentry CLI to upload with release and dist parameters. In the code, the location where the error occurs doesn't match the location shown in the stack trace. Sometimes it points to a different file or a few lines above/below. Despite including the map file, I get an "artifact not found" warning. The path it expects to match exists in the artifacts with the same release and dist numbers, but it doesn't accept it.

Note: I'm also using the no-dedupe and url-prefix parameters during the upload.

Upload command: sentry.exe sourcemaps upload --release=$version $sentryFiles --no-dedupe --url-prefix "~/$version/$mapFilesPath --dist web

Command Output: sentry.exe sourcemaps upload --release=v1000 *.map,*.js --no-dedupe --url-prefix "~/v1000/www\js" --dist web

Expected Result

Displaying the error in the correct file and line within the stack trace.

Actual Result

Image
Image
Image

Product Area

Issues - Source Maps

Link

No response

DSN

No response

Version

25.3.0`

orcuntuna avatar Jun 12 '25 11:06 orcuntuna

Auto-routing to @getsentry/product-owners-issues for triage ⏲️

getsantry[bot] avatar Jun 12 '25 11:06 getsantry[bot]

Thanks for filing. Can you please share what command you use for creating the release and uploading the source maps?

armenzg avatar Jun 12 '25 14:06 armenzg

Thanks for filing. Can you please share what command you use for creating the release and uploading the source maps?

Of course. I added the command with variables. There are path and version. Command runs on Windows server.

orcuntuna avatar Jun 13 '25 10:06 orcuntuna

My apologies I missed that 😅 I'm trying to find the right team to handle this.

armenzg avatar Jun 13 '25 18:06 armenzg

Self-hosted issues like this are unfortunately difficult to diagnose. @orcuntuna Do you have an event JSON file that exhibits this issue you can post here or mail to me privately?

loewenheim avatar Jun 17 '25 07:06 loewenheim

Self-hosted issues like this are unfortunately difficult to diagnose. @orcuntuna Do you have an event JSON file that exhibits this issue you can post here or mail to me privately?

Can you share your email address with me?

orcuntuna avatar Jun 18 '25 06:06 orcuntuna

Sorry, of course. It's [email protected].

loewenheim avatar Jun 18 '25 07:06 loewenheim