# The bulk request must be terminated by a newline \[\\\\n\]

**URL:** <https://discuss.elastic.co/t/the-bulk-request-must-be-terminated-by-a-newline-n/207155>\
**Category:** Elasticsearch\
**Created:** [November 8, 2019, 5:44pm UTC](https://discuss.elastic.co/t/the-bulk-request-must-be-terminated-by-a-newline-n/207155 "2019-11-08T17:44:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PrabhuRajendran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prabhurajendran/32/45049_2.png) [@PrabhuRajendran](https://discuss.elastic.co/u/PrabhuRajendran)\
**Post date:** [November 8, 2019, 5:44pm UTC](https://discuss.elastic.co/t/the-bulk-request-must-be-terminated-by-a-newline-n/207155/1 "2019-11-08T17:44:41Z")

</div>

Hi,

I am trying to add bulk request via cURL http client, when i try pass json file am getting "The bulk request must be terminated by a newline [\n]"

Could some one help why am getting even if added newline at end of file.

 ![02%20PM](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a497613d4f483fb2e5ec12ae9d4c1cd48ee206da.png) ![37%20PM](https://us1.discourse-cdn.com/elastic/original/3X/a/9/a9dc6f2cbc002db5b88f176e2371ae7b0946994f.png)

---

<div class="post-metadata">

**Author:** ![PrabhuRajendran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prabhurajendran/32/45049_2.png) [@PrabhuRajendran](https://discuss.elastic.co/u/PrabhuRajendran)\
**Post date:** [November 8, 2019, 6:03pm UTC](https://discuss.elastic.co/t/the-bulk-request-must-be-terminated-by-a-newline-n/207155/2 "2019-11-08T18:03:30Z")

</div>

its based on text editor , in case of sublime from last character file type (press command-return) and it worked for me 🙂

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:** [December 6, 2019, 6:03pm UTC](https://discuss.elastic.co/t/the-bulk-request-must-be-terminated-by-a-newline-n/207155/3 "2019-12-06T18:03:34Z")

</div>

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