Node Stats API Failing - "Values less than -1 bytes are not supported: -4b"

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

1 Like

Is there any chance you can update? You might be hitting this: https://github.com/elastic/elasticsearch/pull/42725

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