Skip to content

Bundler plugin says upload successful, when Sentry CLI fails #670

Open
@szokeasaurusrex

Description

@szokeasaurusrex

This issue was originally reported by @kubijo in the Sentry CLI repository.

This issue report is based on the information provided in the original issue; I did not try to reproduce the bug myself.

@kubijo, it would be helpful if you could fill in any missing information here, such as the version of the bundler plugin you are using, and any reproduction steps which are missing.

Environment

"@sentry/webpack-plugin": "3.1.1", with Sentry CLI 2.39.1. Running on Ubuntu 24.10.

Steps to Reproduce

  1. Use the bundler plugin to upload sourcemaps to Sentry
  2. When uploading, configure a non-existing project as the destination, so that Sentry CLI fails during the upload.
    • In the original issue, the Sentry CLI failed due to a 502 error. However, triggering any kind of failure in the Sentry CLI should likely cause the same behavior in the bundler plugin.

Expected Result

Bundler plugin logs that an error prevented upload.

Actual Result

Bundler plugin logs that sourcemap upload was successful:

[...]
> Bundled 42 files for upload
> Bundle ID: 95362a95-0674-5519-ad70-4fc1c6bb1d63
error: Project not found. Ensure that you configured the correct project and organization.

[...]

[sentry-webpack-plugin] Info: Successfully uploaded source maps to Sentry

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions