Skip to content

Release creation fails in the Remix upload scripts and the React Router Vite plugin #24989

Description

@chargome

Since the move to the sentry CLI SDK (#23398, in 11.0), sentry-upload-sourcemaps calls release.create({ orgVersion }) without a project. The release API requires one, and the SDK's default project does not reach that call, so every run fails with Failed to create release: 400 Bad Request. The unit test mocks the SDK, so it did not catch this. Reproduced against a real org.

@sentry/react-router's Vite build end (handleOnBuildEnd) has the same call, so its release creation fails too; the upload still runs. sentry-remix-v3-upload-sourcemaps passes --project through, but does not fall back to SENTRY_PROJECT.

Fix: pass the project to release.create everywhere (flag, then SENTRY_PROJECT for the scripts), and fail with a clear message when neither is set. Update the unit tests to assert the project is passed. @sentry/bundler-plugins already does this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions