Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch Version 2.14.1
Describe the issue:
I’m using a python app to scroll through an index. Therefore i use the python requests package to perform the neccessary curl requests.
While the first search and also other requests to the api are successful the scroll request returns with a http 400 Bad Request.
Also putting the scroll id as a parameter in the data field did return the same error.
Any ideas where this can occur from?
I’m currently adding a feature to also scroll on index patterns but since adding the possibility of a wildcard for the indice this erro occurs. It does not appear if i use the same commands in the devtools i dont get this error
Configuration:
Curl Requests:
requests.get("https://<os-url>/<index>/_search?scroll=10m", headers={"Authorization": "Basic <token>", "Content-Type": "application/json", data={"size":10000, "query": <query>}, verify=False}
requests.get("https://<os-url>/_search/scroll/<scroll_id>", , headers={"Authorization": "Basic <token>", "Content-Type": "application/json", data={"scroll":"10m"}, verify=False)