Graylog2 / Graylog2/graylog2-server

Scripted Search API does not return Query Limit Errors to caller

Open
#25,600 0 comments 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## 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)

1.
2.
3.
4.

## 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.