# Elastic search wrapper query not works with base64 encoded string

**URL:** <https://discuss.elastic.co/t/elastic-search-wrapper-query-not-works-with-base64-encoded-string/151354>\
**Category:** Elasticsearch\
**Created:** [October 7, 2018, 1:05pm UTC](https://discuss.elastic.co/t/elastic-search-wrapper-query-not-works-with-base64-encoded-string/151354 "2018-10-07T13:05:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raja\_augstin](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@raja\_augstin](https://discuss.elastic.co/u/raja_augstin)\
**Post date:** [October 7, 2018, 1:05pm UTC](https://discuss.elastic.co/t/elastic-search-wrapper-query-not-works-with-base64-encoded-string/151354/1 "2018-10-07T13:05:40Z")

</div>

elastic search wrapper query not works with base64 encoded string  
ES version : 5.2.3

curl -XPOST '[http://localhost:9200/entitymaster\_qa\_t4/\_search](http://localhost:9200/entitymaster_qa_t4/_search)' -d '{  
"query" : {  
"wrapper" : {  
"query" : "W0NAMTZiN2MzYw=="  
}  
}  
}'

Reponse:

{

"error": {

"root\_cause": [

{

"type": "parse\_exception",

"reason": "Failed to derive xcontent"

}

],

"type": "search\_phase\_execution\_exception",

"reason": "all shards failed",

"phase": "query",

"grouped": true,

"failed\_shards": [

{

"shard": 0,

"index": "entitymaster\_qa\_t4",

"node": "8WVaVr9ATmaqOPDHGpNyHw",

"reason": {

"type": "parse\_exception",

"reason": "Failed to derive xcontent"

}

}

],

},

"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:** [November 4, 2018, 1:05pm UTC](https://discuss.elastic.co/t/elastic-search-wrapper-query-not-works-with-base64-encoded-string/151354/2 "2018-11-04T13:05:50Z")

</div>

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