# Failed to parse value\[1\] as only \[true\] or \[false\] are allowed

**URL:** <https://discuss.elastic.co/t/failed-to-parse-value-1-as-only-true-or-false-are-allowed/144654>\
**Category:** Elasticsearch\
**Created:** [August 16, 2018, 8:13am UTC](https://discuss.elastic.co/t/failed-to-parse-value-1-as-only-true-or-false-are-allowed/144654 "2018-08-16T08:13:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Sava](https://avatars.discourse-cdn.com/v4/letter/v/b782af/32.png) [@Victor\_Sava](https://discuss.elastic.co/u/Victor_Sava)\
**Post date:** [August 16, 2018, 8:13am UTC](https://discuss.elastic.co/t/failed-to-parse-value-1-as-only-true-or-false-are-allowed/144654/1 "2018-08-16T08:13:27Z")

</div>

`{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Failed to parse value [1] as only [true] or [false] are allowed."}],"type":"illegal_argument_exception","reason":"Failed to parse value [1] as only [true] or [false] are allowed."},"status":400}`

I get this error when i access [http://localhost:9200/\_nodes/transport?pretty=1](http://localhost:9200/_nodes/transport?pretty=1)

So it seems like i did some settings wrong but i am not sure were to look

---

<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:** [August 17, 2018, 9:24am UTC](https://discuss.elastic.co/t/failed-to-parse-value-1-as-only-true-or-false-are-allowed/144654/2 "2018-08-17T09:24:12Z")

</div>

can you share a bit more about your setup? What version are you running on? Does the same happen when you run `GET _nodes`. Can you run the request with this parameter and paste the full response

```auto
GET _nodes/transport?error_trace=true

```

thanks!

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [August 17, 2018, 11:35am UTC](https://discuss.elastic.co/t/failed-to-parse-value-1-as-only-true-or-false-are-allowed/144654/3 "2018-08-17T11:35:32Z")

</div>

The problem here is the `pretty=1`. That is no longer accepted syntax as we have removed the use of anything but `true` and `false` to represent `true` and `false`. This problem will go away if you change `pretty=1` to `pretty=true`.

---

<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:** [September 14, 2018, 11:35am UTC](https://discuss.elastic.co/t/failed-to-parse-value-1-as-only-true-or-false-are-allowed/144654/4 "2018-09-14T11:35:38Z")

</div>

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