# Problem with 'not\_x\_content\_exception'

**URL:** <https://discuss.elastic.co/t/problem-with-not-x-content-exception/169713>\
**Category:** Elasticsearch\
**Created:** [February 24, 2019, 10:16am UTC](https://discuss.elastic.co/t/problem-with-not-x-content-exception/169713 "2019-02-24T10:16:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwardke](https://avatars.discourse-cdn.com/v4/letter/e/3e96dc/32.png) [@edwardke](https://discuss.elastic.co/u/edwardke)\
**Post date:** [February 24, 2019, 10:16am UTC](https://discuss.elastic.co/t/problem-with-not-x-content-exception/169713/1 "2019-02-24T10:16:23Z")

</div>

Hi, I'm trying to put some data into my elastic cloud instance using Postman.  
I set the headers to be 'Content-Type' - 'application/json', and the body is a valid json object.  
I am trying to do a PUT request to a new index, how ever I get this error:

```
{
    "error": {
        "root_cause": [
            {
                "type": "not_x_content_exception",
                "reason": "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
            }
        ],
        "type": "not_x_content_exception",
        "reason": "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
    },
    "status": 500
}

```

Any idea what might be causing it?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [February 25, 2019, 9:30am UTC](https://discuss.elastic.co/t/problem-with-not-x-content-exception/169713/2 "2019-02-25T09:30:13Z")

</div>

Can you share the `PUT` request that yields this error?

---

<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:** [March 11, 2019, 9:30am UTC](https://discuss.elastic.co/t/problem-with-not-x-content-exception/169713/3 "2019-03-11T09:30:13Z")

</div>

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