# Json\_parse\_exception during ES 1.3.9 to 5.2.1 reindex from remote

**URL:** <https://discuss.elastic.co/t/json-parse-exception-during-es-1-3-9-to-5-2-1-reindex-from-remote/77340>\
**Category:** Elasticsearch\
**Created:** [March 3, 2017, 4:31pm UTC](https://discuss.elastic.co/t/json-parse-exception-during-es-1-3-9-to-5-2-1-reindex-from-remote/77340 "2017-03-03T16:31:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler\_Dockstader](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@Tyler\_Dockstader](https://discuss.elastic.co/u/Tyler_Dockstader)\
**Post date:** [March 3, 2017, 4:31pm UTC](https://discuss.elastic.co/t/json-parse-exception-during-es-1-3-9-to-5-2-1-reindex-from-remote/77340/1 "2017-03-03T16:31:27Z")

</div>

Sorry if this is the wrong place to ask this question, I am trying to reindex from remote cluster (described here [https://www.elastic.co/guide/en/elasticsearch/reference/current/reindex-upgrade.html#reindex-upgrade-remote](https://www.elastic.co/guide/en/elasticsearch/reference/current/reindex-upgrade.html#reindex-upgrade-remote))

All works fine but after a few minutes I get the following error. Is there any way around this like skipping invalid documents?

```
curl -XPOST 'localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d'
{
  "source": {
    "remote": {
      "host": "http://<old-es-box>:9200"
    },
    "index": "old_index"
  },
  "dest": {
    "index": "new_index"
  }
}
'

{
  "error" : {
    "root_cause" : [
      {
        "type" : "parsing_exception",
        "reason" : "[hits] failed to parse field [hits]",
        "line" : 1,
        "col" : 1074329
      }
    ],
    "type" : "parsing_exception",
    "reason" : "[search_response] failed to parse field [hits]",
    "line" : 1,
    "col" : 1074329,
    "caused_by" : {
      "type" : "parsing_exception",
      "reason" : "[hits] failed to parse field [hits]",
      "line" : 1,
      "col" : 1074329,
      "caused_by" : {
        "type" : "json_parse_exception",
        "reason" : "Illegal character ((CTRL-CHAR, code 0)): only regular white space (\\r, \\n, \\t) is allowed between tokens\n at [Source: org.apache.http.nio.entity.ContentInputStream@98e46cb; line: 1, column: 1074331]"
      }
    }
  },
  "status" : 400
}

```

Thanks!

---

<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 31, 2017, 4:31pm UTC](https://discuss.elastic.co/t/json-parse-exception-during-es-1-3-9-to-5-2-1-reindex-from-remote/77340/2 "2017-03-31T16:31:28Z")

</div>

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