# Courier Fetch

**URL:** <https://discuss.elastic.co/t/courier-fetch/27575>\
**Category:** Kibana\
**Created:** [August 18, 2015, 9:47am UTC](https://discuss.elastic.co/t/courier-fetch/27575 "2015-08-18T09:47:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hornov](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Hornov](https://discuss.elastic.co/u/Hornov)\
**Post date:** [August 18, 2015, 9:47am UTC](https://discuss.elastic.co/t/courier-fetch/27575/1 "2015-08-18T09:47:52Z")

</div>

Sometimes I meet the following warning : Courier Fetch: 1 of 90 shards failed.  
And when I look for in the elasticsearch log I find : No mapping found for ... in order to sort on  
However in all shards I've the mapping : "type": "date", "format": "dateOptionalTime"

I don't understand, do you have any idea ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 18, 2015, 11:04pm UTC](https://discuss.elastic.co/t/courier-fetch/27575/2 "2015-08-18T23:04:12Z")

</div>

It'd help if we could see the entire log entry.

---

<div class="post-metadata">

**Author:** ![Hornov](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Hornov](https://discuss.elastic.co/u/Hornov)\
**Post date:** [August 19, 2015, 11:28am UTC](https://discuss.elastic.co/t/courier-fetch/27575/3 "2015-08-19T11:28:18Z")

</div>

for example :  
[2015-08-18 17:47:55,358][DEBUG][action.search.type] [pobmn1] [logstash-mi-2015.03.16][0], node[4CNf90b4SdyeaagQZQFcrA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@274f39ae] lastShard [true]  
org.elasticsearch.search.SearchParseException: [logstash-mi-2015.03.16][0]: query[filtered(+filtered(mi\_field:[\* TO 10})-\>cache(\_type:mi\_type) +filtered(TIMESTAMP\_DATE\_EVT:{1439884075308 TO _])-\>cache(\_type:mi\_type))-\>BooleanFilter(+QueryWrapperFilter(ConstantScore(_:_)) +cache(TIMESTAMP\_DATE\_EVT:[1439911975432 TO 1439912875432]))],from[-1],size[500]: Parse Failure [Failed to parse source [{"query":{"filtered":{"query":{"query\_string":{"query":"mi\_type.mi\_field:\<10 AND mi\_type.TIMESTAMP\_DATE\_EVT:\>now-8h","analyze\_wildcard":true}},"filter":{"bool":{"must":[{"query":{"query\_string":{"query":"_","analyze\_wildcard":true}}},{"range":{"TIMESTAMP\_DATE\_EVT":{"gte":1439911975432,"lte":1439912875432}}}],"must\_not":[]}}}},"highlight":{"pre\_tags":["@kibana-highlighted-field@"],"post\_tags":["@/kibana-highlighted-field@"],"fields":{"_":{}}},"size":500,"sort":{"mi\_date":"asc"},"fields":["_","\_source"],"script\_fields":{},"fielddata\_fields":["@timestamp","mi\_date","mi\_date2","mi\_date3","mi\_date4","TIMESTAMP\_DATE\_EVT","mi\_date5"]}]]  
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:687)  
at org.elasticsearch.search.SearchService.createContext(SearchService.java:543)  
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:515)  
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:277)  
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)  
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)  
at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)  
Caused by: org.elasticsearch.search.SearchParseException: [logstash-mi-2015.03.16][0]: query[filtered(+filtered(mi\_field:[\* TO 10})-\>cache(\_type:mi\_type) +filtered(TIMESTAMP\_DATE\_EVT:{1439884075308 TO _])-\>cache(\_type:mi\_type))-\>BooleanFilter(+QueryWrapperFilter(ConstantScore(_:\*)) +cache(TIMESTAMP\_DATE\_EVT:[1439911975432 TO 1439912875432]))],from[-1],size[500]: Parse Failure [No mapping found for [mi\_date] in order to sort on]  
at org.elasticsearch.search.sort.SortParseElement.addSortField(SortParseElement.java:210)  
at org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:141)  
at org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:96)  
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:671)  
... 9 more

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 20, 2015, 9:27pm UTC](https://discuss.elastic.co/t/courier-fetch/27575/4 "2015-08-20T21:27:18Z")

</div>

Courier Fetch errors indicate failures on the Elasticsearch side. In this case, looks like a search query sent from the front end failed to parse on the backend.

You can see some additional discussion about conditions that trigger this error here: [https://github.com/elastic/kibana/issues/3221](https://github.com/elastic/kibana/issues/3221)

We are building in some additional structured exception handling in the future that should help provide more feedback at the Kibana level when such errors occur: [https://github.com/elastic/kibana/issues/4536](https://github.com/elastic/kibana/issues/4536)

---

<div class="post-metadata">

**Author:** ![Hornov](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@Hornov](https://discuss.elastic.co/u/Hornov)\
**Post date:** [August 21, 2015, 3:16pm UTC](https://discuss.elastic.co/t/courier-fetch/27575/5 "2015-08-21T15:16:13Z")

</div>

Thanks  
I think I found the cause : I had some visualisations with sort based on searches that used the index \* so of course the sorted field did'nt exist for some index

---

<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, 2:14pm UTC](https://discuss.elastic.co/t/courier-fetch/27575/6 "2017-07-06T14:14:23Z")

</div>


