# I'm getting this error on bulk

**URL:** https://discuss.elastic.co/t/im-getting-this-error-on-bulk/22312
**Category:** Elasticsearch
**Created:** [February 22, 2015, 11:03am UTC](https://discuss.elastic.co/t/im-getting-this-error-on-bulk/22312 "2015-02-22T11:03:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Raz\_Lachyani](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@Raz\_Lachyani](https://discuss.elastic.co/u/Raz_Lachyani)
#### Post date: [February 22, 2015, 11:03am UTC](https://discuss.elastic.co/t/im-getting-this-error-on-bulk/22312/1 "2015-02-22T11:03:38Z")

</div>

I'm getting this error while sending bulks from php client:

Elasticsearch Bulk failed ! cause :  
{"error":"ElasticsearchParseException[Failed to derive xcontent from  
org.elasticsearch.common.bytes.BytesArray@1]","status":400}

Does anyone has an idea what does it mean ?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6e8d03ea-bdfb-4f41-8881-9702aa9b8dff%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6e8d03ea-bdfb-4f41-8881-9702aa9b8dff%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 22, 2015, 1:57pm UTC](https://discuss.elastic.co/t/im-getting-this-error-on-bulk/22312/2 "2015-02-22T13:57:09Z")

</div>

It means that your bulk is incorrect. Check its format.

David

> Le 22 févr. 2015 à 12:03, Raz Lachyani [raz.lachyani@gmail.com](mailto:raz.lachyani@gmail.com) a écrit :
> 
> I'm getting this error while sending bulks from php client:
> 
> Elasticsearch Bulk failed ! cause : {"error":"ElasticsearchParseException[Failed to derive xcontent from org.elasticsearch.common.bytes.BytesArray@1]","status":400}
> 
> Does anyone has an idea what does it mean ?
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6e8d03ea-bdfb-4f41-8881-9702aa9b8dff%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6e8d03ea-bdfb-4f41-8881-9702aa9b8dff%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4248C849-0B78-4D12-88BB-8ABF96DC0442%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/4248C849-0B78-4D12-88BB-8ABF96DC0442%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 22, 2015, 1:57pm UTC](https://discuss.elastic.co/t/im-getting-this-error-on-bulk/22312/3 "2015-02-22T13:57:38Z")

</div>

May be you forgot the last \n ?

David

> Le 22 févr. 2015 à 12:03, Raz Lachyani [raz.lachyani@gmail.com](mailto:raz.lachyani@gmail.com) a écrit :
> 
> I'm getting this error while sending bulks from php client:
> 
> Elasticsearch Bulk failed ! cause : {"error":"ElasticsearchParseException[Failed to derive xcontent from org.elasticsearch.common.bytes.BytesArray@1]","status":400}
> 
> Does anyone has an idea what does it mean ?
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6e8d03ea-bdfb-4f41-8881-9702aa9b8dff%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6e8d03ea-bdfb-4f41-8881-9702aa9b8dff%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/94BB7C07-A363-4EF4-AD43-B423984F9AFF%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/94BB7C07-A363-4EF4-AD43-B423984F9AFF%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Raz\_Lachyani](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@Raz\_Lachyani](https://discuss.elastic.co/u/Raz_Lachyani)
#### Post date: [February 22, 2015, 3:07pm UTC](https://discuss.elastic.co/t/im-getting-this-error-on-bulk/22312/4 "2015-02-22T15:07:28Z")

</div>

No,  
It was actually empty :-o .

Thanks for the quick response.

On Sunday, February 22, 2015 at 3:58:07 PM UTC+2, David Pilato wrote:

> May be you forgot the last \n ?
> 
> David
> 
> Le 22 févr. 2015 à 12:03, Raz Lachyani \<[raz.la...@gmail.com](mailto:raz.la...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> I'm getting this error while sending bulks from php client:
> 
> Elasticsearch Bulk failed ! cause :  
> {"error":"ElasticsearchParseException[Failed to derive xcontent from  
> org.elasticsearch.common.bytes.BytesArray@1]","status":400}
> 
> Does anyone has an idea what does it mean ?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/6e8d03ea-bdfb-4f41-8881-9702aa9b8dff%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6e8d03ea-bdfb-4f41-8881-9702aa9b8dff%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/6e8d03ea-bdfb-4f41-8881-9702aa9b8dff%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6e8d03ea-bdfb-4f41-8881-9702aa9b8dff%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/30fb1b2e-58c8-47d8-9f4b-13dc718a6e65%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/30fb1b2e-58c8-47d8-9f4b-13dc718a6e65%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:30am UTC](https://discuss.elastic.co/t/im-getting-this-error-on-bulk/22312/5 "2017-07-06T00:30:57Z")

</div>


