# I am getting mapper\_parsing\_exception ,while integrating elastic stack with the Node application

**URL:** https://discuss.elastic.co/t/i-am-getting-mapper-parsing-exception-while-integrating-elastic-stack-with-the-node-application/197135
**Category:** Elasticsearch
**Created:** [August 28, 2019, 2:27pm UTC](https://discuss.elastic.co/t/i-am-getting-mapper-parsing-exception-while-integrating-elastic-stack-with-the-node-application/197135 "2019-08-28T14:27:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tapas\_Rai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tapas_rai/32/45111_2.png) [@Tapas\_Rai](https://discuss.elastic.co/u/Tapas_Rai)
#### Post date: [August 28, 2019, 2:27pm UTC](https://discuss.elastic.co/t/i-am-getting-mapper-parsing-exception-while-integrating-elastic-stack-with-the-node-application/197135/1 "2019-08-28T14:27:54Z")

</div>

Hi All,

While integrating Node application with ELK i am getting below error ,

statusCode: 400,  
response:  
'{"error":{"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"No handler for type [buffer] declared on field [data]"}],"type":"mapper\_parsing\_exception","reason":"No handler for type [buffer] declared on field [data]"},"status":400}',

I am storing photo in below model,  
photo: {  
data: Buffer,  
contentType: String  
}

Please help me with this , I have used most of the lower version of elastic search but result is same .

Thanks and Regards,  
Vishal

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [August 30, 2019, 8:59am UTC](https://discuss.elastic.co/t/i-am-getting-mapper-parsing-exception-while-integrating-elastic-stack-with-the-node-application/197135/2 "2019-08-30T08:59:24Z")

</div>

a `Buffer` looks like a node.js instance type to me, which Elasticsearch cannot handle. You need to convert that into a base64 string - I'd personally try to not to store such data in Elasticsearch, but put it elsewhere and then store the location in the JSON.

---

<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: [September 27, 2019, 8:59am UTC](https://discuss.elastic.co/t/i-am-getting-mapper-parsing-exception-while-integrating-elastic-stack-with-the-node-application/197135/3 "2019-09-27T08:59:26Z")

</div>

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