Skip to content

Scripted Search API does not return Query Limit Errors to caller #25600

@dennisoelkers

Description

@dennisoelkers

Expected Behavior

When a query against the Scripted Search API hits the query limit, that should be communicated to the caller.

Current Behavior

$ curl -u admin:admin -H 'X-Requested-By: me' -H 'Accept: application/json' 'http://localhost:8080/api/search/messages'
{"type":"ApiError","message":"Scripting API failed to obtain messages for input : MessagesRequestSpec[queryString=*, streams=[], streamCategories=[], timerange=RelativeRange{range=OptionalInt[86400], from=OptionalInt.empty, to=OptionalInt.empty, nowUTC=null}, sort=timestamp, sortOrder=Descending, from=0, size=10, fields=[source, timestamp]]"}

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Graylog Version:
  • Java Version:
  • OpenSearch Version:
  • MongoDB Version:
  • Operating System:
  • Browser version:

Checklist

[] This issue fix need to be backported.
[] Does this issue have security implications?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions