Skip to content

Improve error messaging for misconfigured environment variables in releases #2820

@dalnoki

Description

@dalnoki

Problem Statement

While using Sentry CLI to create a release, a customer encountered the following error message:

error: This version of Sentry does not support artifact bundles. A release slug is required (provide with --release or by setting the SENTRY_RELEASE environment variable)

At first glance, the error suggested that the issue was related to artifact bundles or the SENTRY_RELEASE variable. However, the actual cause was that they had mistakenly swapped the values of the SENTRY_ORG and SENTRY_PROJECT environment variables. Once they corrected these variables, the release worked as expected.

Solution Brainstorm

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssue typeCLIProduct area

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions