Skip to content

update_issue returns API errors but operations succeed #646

Closed

Description

@benabraham

Bug Description

The update_issue tool returns API error messages with Event IDs, but the operations actually succeed. This creates confusion as the tool reports failure when issues are successfully updated.

Steps to Reproduce

  1. Authenticate with Sentry MCP via OAuth (HTTP transport)
  2. Call update_issue to mark an issue as resolved:
    update_issue(
      organizationSlug='scws',
      issueId='SMOKINGCAT-1P',
      status='resolved',
      regionUrl='https://de.sentry.io'
    )
    
  3. Observe error response returned
  4. Query issues again with search_issues
  5. Verify issue was actually marked as resolved

Expected Behavior

  • update_issue should return success response when operation succeeds
  • Tool should only return errors when operation actually fails

Actual Behavior

  • Tool returns error message: "It looks like there was a problem communicating with the Sentry API"
  • Provides Event IDs suggesting API failure
  • However: The issue status IS successfully updated in Sentry
  • Subsequent queries confirm the operation succeeded

Evidence

Attempted to update 3 issues, all returned errors but all succeeded:

  1. SMOKINGCAT-1P (IntegrityError)

    • Error Event ID: 801c82e629604ca28e4d3dd37663a7af
    • Status: Actually resolved ✅
  2. SMOKINGCAT-1N (ModuleNotFoundError)

    • Error Event ID: c5ba0e2c42a241049fdecb50875fac15
    • Status: Actually resolved ✅
  3. SMOKINGCAT-1Q (SyntaxError)

    • Error Event ID: 3b3d6debee614b67bbaf1e1ae75915d9
    • Status: Actually resolved ✅

Verified by running search_issues after the operations - only 1 unresolved issue remained (down from 4), confirming all 3 updates succeeded.

Environment

  • MCP Server: https://mcp.sentry.dev/mcp (HTTP/OAuth)
  • Transport: HTTP with OAuth authentication
  • Client: Claude Code with Sentry MCP integration
  • Organization: scws
  • Region: https://de.sentry.io (EU region)
  • Date: 2025-11-20

Impact

  • Severity: Medium - Operations work but error reporting is incorrect
  • User Experience: Confusing - users think operations failed when they succeeded
  • Workaround: Ignore error responses and verify with subsequent queries

Suggested Fix

Check error handling in update_issue implementation:

  • Verify HTTP response parsing logic
  • Ensure success responses (2xx) are correctly identified
  • Review error detection logic that generates Event IDs

Additional Notes

This may be related to response format differences between Sentry regions or OAuth authentication flow. The fact that all 3 operations consistently showed this pattern suggests a systematic issue rather than intermittent API problems.

Activity

  1. added a commit that references this issue on Nov 20, 2025
    f90b05d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions