Skip to content

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

Open
@orcuntuna

Description

@orcuntuna

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`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions