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 4 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