# How to understand the error of reindex (request body is required)?

**URL:** <https://discuss.elastic.co/t/how-to-understand-the-error-of-reindex-request-body-is-required/300278>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [March 22, 2022, 6:58am UTC](https://discuss.elastic.co/t/how-to-understand-the-error-of-reindex-request-body-is-required/300278 "2022-03-22T06:58:40Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [March 23, 2022, 9:15am UTC](https://discuss.elastic.co/t/how-to-understand-the-error-of-reindex-request-body-is-required/300278/5 "2022-03-23T09:15:42Z")

</div>

So, judging from the error message and the stack trace it seems, that there is a HTTP body missing. Your sample above looks good

```auto
POST _reindex?slices=5&refresh
{
  "conflicts": "proceed",
  "source": {
    "index": "iotmessages-000001"
  },
  "dest": {
    "index": "iot_prd_iotmessage-000001"
  }
}

```

Just to make sure this is a not a possible error. Did you remove any newlines between the first `POST` and following lines, so this is treated properly by the Kibana console?

If that does not work for whatever reasons, can you try running this as a request using curl?

---

_[View the full topic](https://discuss.elastic.co/t/how-to-understand-the-error-of-reindex-request-body-is-required/300278)._
