# Bulk API using R elastic package

**URL:** <https://discuss.elastic.co/t/bulk-api-using-r-elastic-package/2740>\
**Category:** Elasticsearch\
**Created:** [June 15, 2015, 9:37pm UTC](https://discuss.elastic.co/t/bulk-api-using-r-elastic-package/2740 "2015-06-15T21:37:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Chua](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@Paul\_Chua](https://discuss.elastic.co/u/Paul_Chua)\
**Post date:** [June 15, 2015, 9:37pm UTC](https://discuss.elastic.co/t/bulk-api-using-r-elastic-package/2740/1 "2015-06-15T21:37:20Z")

</div>

I'm indexing a series of bulk files, around 10 MB each. Most of them upload fine, but sometimes I don't get a response from Elasticsearch. It'll just sit there as if it's still processing. I can see from Sense that around 90% of the documents from the offending files are indexed correctly. I'm working in R using the package 'elastic' I've also tried doing a POST to /\_bulk with the upload file, and it does the same thing. Does anyone know what could be causing this?

edit: after about an hour I got a response which flashed some 400 errors and then my R session crashed.

This is the error I see when I send the request in Fiddler. I basically have no idea what it means.  
error: "ElasticsearchParseException[yaml does not support stream parsing...]"  
status: 400

---

<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:** [July 6, 2017, 12:07am UTC](https://discuss.elastic.co/t/bulk-api-using-r-elastic-package/2740/2 "2017-07-06T00:07:19Z")

</div>

Closed on July 6, 2017, 12:07am UTC


