Elasticsearch: Bulk request throws error in Elasticsearch 6.1.1

前端 未结 16 2058
日久生厌
日久生厌 2020-12-16 11:35

I recently upgraded to Elasticsearch version 6.1.1 and now I can\'t bulk index documents from a JSON file. When I do it inline, it works fine. Here are the contents of the d

16条回答
  •  情歌与酒
    2020-12-16 12:11

    I was struggling with this for a hot minute ... Mine was caused by a space in my curl request between the --data and the -binary and gave the same error - "must end with new line [\n]}" ...

    so double-check that in the curl req it's --data-binary not --data - binary

提交回复
热议问题