Repository navigation
fix(cli): validate repository list responses - #1364
Merged
Merged
Conversation
Report malformed repository pages as API errors before release commit discovery can crash or mistake them for missing integrations. Co-Authored-By: GPT-6 (OpenAI) <[email protected]>
Avoid attributing invalid repository responses to self-hosted versions without evidence. Exercise the object payload reproduced with an incomplete API mock. Co-Authored-By: GPT-6 (OpenAI) <[email protected]>
Keep the real HTTP status and endpoint when a repository response violates the array contract. Status zero would incorrectly attribute a successful malformed response to network or user configuration. Verify that the failure stays captured and cannot update the release. Co-Authored-By: GPT-6 (OpenAI) <[email protected]>
betegon
marked this pull request as ready for review
October 2, 2026 11:44
5 tasks
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Aditya Mathur <[email protected]>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Aditya Mathur <[email protected]>
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Aditya Mathur <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sentry release set-commits --autocrashes withTypeError: data.find is not a functionwhen the repositories endpoint returns a successful response with a non-array body. An incomplete API mock returning200 {"ok":true}reproduces the failure; the backend contract is an array, including an empty array when no repositories exist.Validate repository pages before returning them to callers. Unexpected responses produce an
ApiErrorwith the actual HTTP status and requested endpoint, without updating the release or triggering the no-integration fallback. Keeping the real status avoids classifying a malformed successful response as a status-0 network/user-environment failure. The error remains captured by CLI telemetry; its cause is not inferred from a self-hosted URL or the response shape.Regression coverage exercises object, string, and null responses through the real SDK path, preserves successful HTTP statuses, verifies the error stays reportable and is not classified as a user error, and confirms no release mutation occurs. The focused API, command, classification, and telemetry suites pass (368 tests), along with CLI typecheck and lint for the changed files.