# Search UI sometimes asks for username and password

**URL:** <https://discuss.elastic.co/t/search-ui-sometimes-asks-for-username-and-password/241505>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [July 16, 2020, 4:23pm UTC](https://discuss.elastic.co/t/search-ui-sometimes-asks-for-username-and-password/241505 "2020-07-16T16:23:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![coding\_martian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@coding\_martian](https://discuss.elastic.co/u/coding_martian)\
**Post date:** [July 16, 2020, 4:23pm UTC](https://discuss.elastic.co/t/search-ui-sometimes-asks-for-username-and-password/241505/1 "2020-07-16T16:23:13Z")

</div>

I am currently using an App Search instance for the backend and a React front end user interface based on Elasticsearch-ui. The config for the SearchProvider element have the right authentication details (searchKey, endpointBase, and engineName).

I've been encountering a bit of a Heisenbug because sometimes, pulling up the search page sometimes triggers a alert box asking for a username and password. I can't figure out what the right username and password are, and that causes the search page to crash with a 404 error. However, the weird thing is this issue occurred on code that was working perfectly before. In addition, this bug also simply goes away after a while, after no changes have been made to the code. Help would be appreciated!

---

<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 16, 2020, 4:26pm UTC](https://discuss.elastic.co/t/search-ui-sometimes-asks-for-username-and-password/241505/2 "2020-07-16T16:26:21Z")

</div>

Hi @coding_martian 👋 What version of App Search are you using?

---

<div class="post-metadata">

**Author:** ![coding\_martian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@coding\_martian](https://discuss.elastic.co/u/coding_martian)\
**Post date:** [July 16, 2020, 4:42pm UTC](https://discuss.elastic.co/t/search-ui-sometimes-asks-for-username-and-password/241505/3 "2020-07-16T16:42:57Z")

</div>

Hi @orhantoy, I'm using Enterprise Search v7.8

---

<div class="post-metadata">

**Author:** ![coding\_martian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@coding\_martian](https://discuss.elastic.co/u/coding_martian)\
**Post date:** [July 19, 2020, 11:19am UTC](https://discuss.elastic.co/t/search-ui-sometimes-asks-for-username-and-password/241505/4 "2020-07-19T11:19:13Z")

</div>

Bumping this to get a response soon

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [July 21, 2020, 7:33pm UTC](https://discuss.elastic.co/t/search-ui-sometimes-asks-for-username-and-password/241505/5 "2020-07-21T19:33:53Z")

</div>

Hey @coding_martian, we've seen this bug before and at one point had a fix for it, there may have been a regression.

However, I _believe_ users of your search experience will typically never see this error. AFAIK this can only occur to someone who has logged into the App Search dashboard, which is likely why you are experiencing it.

You can probably work around this for now by clearing cookies for the app search domain or terminating your current browser session and starting a new one.

Regardless, we will be working on a fix for this on our end.

---

<div class="post-metadata">

**Author:** ![coding\_martian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@coding\_martian](https://discuss.elastic.co/u/coding_martian)\
**Post date:** [July 22, 2020, 10:07am UTC](https://discuss.elastic.co/t/search-ui-sometimes-asks-for-username-and-password/241505/6 "2020-07-22T10:07:04Z")

</div>

Thanks, did a cursory test and the bug did not pop up when I was signed out of the App Search Dashboard.

---

<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, 10:18am UTC](https://discuss.elastic.co/t/search-ui-sometimes-asks-for-username-and-password/241505/7 "2020-08-19T10:18:33Z")

</div>

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