Skip to content

Search event.timestamp throws internal error on tags #14114

@blodone

Description

@blodone

On-Premise docker [Version 9.1.1]

When filtering with a query like this:
is:unresolved event.timestamp:>=2016-01-02T01:00:00 event.timestamp:<2016-01-02T02:00:00
an internal error is thrown at

sentry/tagstore/legacy/backend.py in get_event_tag_qs at line 759

NotImplementedError: null
  File "sentry/api/base.py", line 90, in handle_exception
    response = super(Endpoint, self).handle_exception(exc)
  File "sentry/api/base.py", line 190, in dispatch
    response = handler(request, *args, **kwargs)
  File "sentry/api/endpoints/project_group_index.py", line 185, in get
    cursor_result, query_kwargs = self._search(request, project, {'count_hits': True})
  File "sentry/api/endpoints/project_group_index.py", line 88, in _search
    result = search.query(**query_kwargs)
  File "sentry/utils/services.py", line 91, in <lambda>
    context[key] = (lambda f: lambda *a, **k: getattr(self, f)(*a, **k))(key)
  File "sentry/search/django/backend.py", line 404, in query
    paginator_options, search_filters, **parameters)
  File "sentry/search/django/backend.py", line 436, in _query
    value=environment.name,
  File "sentry/utils/services.py", line 91, in <lambda>
    context[key] = (lambda f: lambda *a, **k: getattr(self, f)(*a, **k))(key)
  File "sentry/tagstore/legacy/backend.py", line 759, in get_event_tag_qs
    raise NotImplementedError  # there is no index that can appopriate satisfy this query

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions