# Send data from kinesis to AWS ElasticSeach using Lambda function get error

**URL:** <https://discuss.elastic.co/t/send-data-from-kinesis-to-aws-elasticseach-using-lambda-function-get-error/126720>\
**Category:** Elasticsearch\
**Created:** [April 4, 2018, 10:35am UTC](https://discuss.elastic.co/t/send-data-from-kinesis-to-aws-elasticseach-using-lambda-function-get-error/126720 "2018-04-04T10:35:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ts\_rana](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@ts\_rana](https://discuss.elastic.co/u/ts_rana)\
**Post date:** [April 4, 2018, 10:35am UTC](https://discuss.elastic.co/t/send-data-from-kinesis-to-aws-elasticseach-using-lambda-function-get-error/126720/1 "2018-04-04T10:35:47Z")

</div>

I am following the [link](https://github.com/aws-samples/amazon-elasticsearch-lambda-samples/blob/master/src/kinesis_lambda_es.js) But shows error like this.

{  
"error": {  
"root\_cause": [  
{  
"type": "mapper\_parsing\_exception",  
"reason": "failed to parse"  
}  
],  
"type": "mapper\_parsing\_exception",  
"reason": "failed to parse",  
"caused\_by": {  
"type": "not\_x\_content\_exception",  
"reason": "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"  
}  
},  
"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:** [May 2, 2018, 10:35am UTC](https://discuss.elastic.co/t/send-data-from-kinesis-to-aws-elasticseach-using-lambda-function-get-error/126720/2 "2018-05-02T10:35:49Z")

</div>

Closed on May 2, 2018, 10:35am UTC

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