We are trying to call _nodes/stats API from our monitoring systems to monitor ES cluster & nodes and its throwing up the below error but _nodes//stats works fine. Can anybody throw some light on why this is happening ?
ElasticSearch Version - "7.1.1"
curl -X GET -u elastic:XXX X.X.X.X:9200/_nodes/stats
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Values less than -1 bytes are not supported: -4b"}],"type":"illegal_argument_exception","reason":"Values less than -1 bytes are not supported: -4b","suppressed":[{"type":"illegal_state_exception","reason":"Failed to close the XContentBuilder","caused_by":{"type":"i_o_exception","reason":"Unclosed object or array found"}}]},"status":400}
Regards,
Prem