sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Intermittent Internal Error when resolving issues through API

Open guillaumelachaud opened this issue 1 year ago • 2 comments

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Use REST API to resolve an issue with request PUT /api/0/organizations/{organization_id_or_slug}/issues/{issue_id}/ and payload:
{ "status": "resolvedInNextRelease" }
  1. The REST API sometimes return an internal error response:
"detail": "Internal Error",
"errorId": "0a1a6e14bffc46d182507727900c5f3c"

Expected Result

The API should return a 200 result in case of successful issue update, or a proper error code in case of invalid input.

Actual Result

The API returns an Internal Error. Support has it that this error has been triggered by a list index out of range error on https://github.com/getsentry/sentry/blob/957585118dfd25132769bccfdb8d9828ab7eb718/src/sentry/api/helpers/group_index/update.py#L275

Product Area

APIs

Link

No response

DSN

No response

Version

No response

guillaumelachaud avatar Aug 06 '24 19:08 guillaumelachaud

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Aug 06 '24 19:08 getsantry[bot]

Routing to @getsentry/product-owners-apis for triage ⏲️

getsantry[bot] avatar Aug 08 '24 16:08 getsantry[bot]