# App Search Returning an unexpected error

**URL:** <https://discuss.elastic.co/t/app-search-returning-an-unexpected-error/240798>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [July 11, 2020, 1:42pm UTC](https://discuss.elastic.co/t/app-search-returning-an-unexpected-error/240798 "2020-07-11T13:42:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakelynch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jakelynch/32/76466_2.png) [@Jakelynch](https://discuss.elastic.co/u/Jakelynch)\
**Post date:** [July 11, 2020, 1:42pm UTC](https://discuss.elastic.co/t/app-search-returning-an-unexpected-error/240798/1 "2020-07-11T13:42:34Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/c/9c7c38fbe1fe832b79bfc1bc188ee7b3ba482b33.png)

Unsure what to do to fix but I cannot create an engine

---

<div class="post-metadata">

**Author:** ![orhantoy](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@orhantoy](https://discuss.elastic.co/u/orhantoy)\
**Post date:** [July 13, 2020, 7:29am UTC](https://discuss.elastic.co/t/app-search-returning-an-unexpected-error/240798/2 "2020-07-13T07:29:37Z")

</div>

Hi @Jakelynch 👋

What are you seeing in the logs?  
Also, what version are you running?

---

<div class="post-metadata">

**Author:** ![sonhle](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@sonhle](https://discuss.elastic.co/u/sonhle)\
**Post date:** [July 22, 2020, 3:56am UTC](https://discuss.elastic.co/t/app-search-returning-an-unexpected-error/240798/3 "2020-07-22T03:56:07Z")

</div>

We're experiencing the same this issue recently. Its about 50% api request failure with cors problem. We're with 7.6 version

---

<div class="post-metadata">

**Author:** ![sonhle](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@sonhle](https://discuss.elastic.co/u/sonhle)\
**Post date:** [July 22, 2020, 4:01am UTC](https://discuss.elastic.co/t/app-search-returning-an-unexpected-error/240798/4 "2020-07-22T04:01:25Z")

</div>

The cors error is Access to fetch at '[https://xxxxxxxx/api/as/v1/engines/xxxxx/search.json](https://xxxxxxxx/api/as/v1/engines/xxxxx/search.json)' from origin '[https://xxxxxx.com](https://xxxxxx.com)' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

No error actually tracked from API logs, all 200 status. Looks like the request was routed to a wrong/failure service.

---

<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:** [August 19, 2020, 4:01am UTC](https://discuss.elastic.co/t/app-search-returning-an-unexpected-error/240798/5 "2020-08-19T04:01:27Z")

</div>

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