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

**URL:** <https://discuss.elastic.co/t/node-stats-api-failing-values-less-than-1-bytes-are-not-supported-4b/201048>\
**Category:** Elasticsearch\
**Created:** [September 25, 2019, 1:41pm UTC](https://discuss.elastic.co/t/node-stats-api-failing-values-less-than-1-bytes-are-not-supported-4b/201048 "2019-09-25T13:41:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjaikumar](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pjaikumar](https://discuss.elastic.co/u/pjaikumar)\
**Post date:** [September 25, 2019, 1:41pm UTC](https://discuss.elastic.co/t/node-stats-api-failing-values-less-than-1-bytes-are-not-supported-4b/201048/1 "2019-09-25T13:41:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 25, 2019, 2:28pm UTC](https://discuss.elastic.co/t/node-stats-api-failing-values-less-than-1-bytes-are-not-supported-4b/201048/2 "2019-09-25T14:28:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 23, 2019, 2:31pm UTC](https://discuss.elastic.co/t/node-stats-api-failing-values-less-than-1-bytes-are-not-supported-4b/201048/3 "2019-10-23T14:31:08Z")

</div>

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