getsentry / getsentry/sentry

Setting error.handled is True when querying for errors in Discover returns Internal Error

Open
#103,281 10 comments 0 reactions 0 assignees View on GitHub
Bug Product Area: Discover
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
22h 21m
Merged PRs (30d)
586

Description

### Environment

SaaS (https://sentry.io/)

### Steps to Reproduce

Set error.handeld is True inside discover or when making an alert. It works when is:unresolved is unchecked.

### Expected Result

The filter works and I can see the list of errors where error.handled is True.

### Actual Result

Internal Error. Your query failed to run.

### Product Area

Issues

### Link

https://sentry.sentry.io/issues/6656786701/?project=1&query=is%3Aunresolved%20user.email%3A%EF%80%8DContains%EF%80%8Dcolin.kawai%40sentry.io&referrer=issue-stream

### DSN

_No response_

### Version

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Discover query with error.handled set to True while is:unresolved is enabled, and compare it with the working query where that filter is unchecked. Trace the failing query path and verify that the filter returns the matching errors without an Internal Error.

Written by the indexing model from the issue text.

Assessment

Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.