Graylog2 / Graylog2/graylog2-server
Scripted Search API does not return Query Limit Errors to caller
- 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
Assessment
This issue has not been assessed yet.