# 400 request with &#160 character

**URL:** <https://discuss.elastic.co/t/400-request-with-160-character/33056>\
**Category:** Elasticsearch\
**Created:** [October 27, 2015, 9:33am UTC](https://discuss.elastic.co/t/400-request-with-160-character/33056 "2015-10-27T09:33:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc-Ed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marc-ed/32/5503_2.png) [@Marc-Ed](https://discuss.elastic.co/u/Marc-Ed)\
**Post date:** [October 27, 2015, 9:33am UTC](https://discuss.elastic.co/t/400-request-with-160-character/33056/1 "2015-10-27T09:33:05Z")

</div>

Hi,  
I would like to confirm the issue first before logging it as a Bug.  
Using the simplest JSON structure is enough to reproduce the issue. ES version 1.6.0.

When a text value contains the character &#160 (e.g nbsp), the service returns **400 Bad Request**

Is it a known issue or am I missing a config?

Many thanks,  
BR, Marc

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [October 27, 2015, 12:08pm UTC](https://discuss.elastic.co/t/400-request-with-160-character/33056/2 "2015-10-27T12:08:50Z")

</div>

Hi,  
can you post an example of what you are doing? Are you using curl or another client?

---

<div class="post-metadata">

**Author:** ![Marc-Ed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marc-ed/32/5503_2.png) [@Marc-Ed](https://discuss.elastic.co/u/Marc-Ed)\
**Post date:** [October 27, 2015, 1:05pm UTC](https://discuss.elastic.co/t/400-request-with-160-character/33056/3 "2015-10-27T13:05:21Z")

</div>

I'm using a Java client (Apache core / client) and all requests succeed except the ones which contain this char.  
When the char is removed, then the request succeeds.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 28, 2015, 1:29am UTC](https://discuss.elastic.co/t/400-request-with-160-character/33056/4 "2015-10-28T01:29:09Z")

</div>

Can you post an example that we can use to replicate the problem as well please?

---

<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:** [July 5, 2017, 11:42pm UTC](https://discuss.elastic.co/t/400-request-with-160-character/33056/5 "2017-07-05T23:42:16Z")

</div>


