Msearch - bad request - method and path required


(Luis Soto) #1

Describe the feature:
We just upgraded to Elastic 6.24, and we are executing a request like the following using Postman:
https://site.com/kibana/api/console/proxy?uri=system-stats/_msearch
with the following payload:
{"index" : "system-stats"}
{"query" : {"match_all" : {}}, "from" : 0, "size" : 10}
Sending the headers:
kbn-version: 6.2.4
Content-type: application/x-ndjson

And we are getting the following result:
{
"statusCode": 400,
"error": "Bad Request",
"message": "child "method" fails because ["method" is required]. child "path" fails because ["path" is required]",
"validation": {
"source": "query",
"keys": [
"method",
"path"
]
}
}

We would like to know what we are missing in the request and/or the elastic/kibana configuration.

Regards,


(Zachary Tong) #2

I think this may be kibana specific? Do you get this error if you try the request against the cluster directly (not going through the kibana proxy)?

I only ask because if it's kibana-specific, you'll likely have better luck with this question in the kibana subforum (I can move the thread for you in that case) :slight_smile:


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.