# ElasticSearch Test queries page at IP:18381: The query is invalid

**URL:** <https://discuss.openedx.org/t/elasticsearch-test-queries-page-at-ip-the-query-is-invalid/2572>\
**Category:** Site Operations Help\
**Created:** [June 26, 2020, 11:06pm UTC](https://discuss.openedx.org/t/elasticsearch-test-queries-page-at-ip-the-query-is-invalid/2572 "2020-06-26T23:06:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xperez](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/xperez/32/1089_2.png) [@Xperez](https://discuss.openedx.org/u/Xperez)\
**Post date:** [June 26, 2020, 11:06pm UTC](https://discuss.openedx.org/t/elasticsearch-test-queries-page-at-ip-the-query-is-invalid/2572/1 "2020-06-26T23:06:20Z")

</div>

Hi, im getting this error when testing queries in the Discovery Service at my-ip:18381

Is this supposed to happen? I´m not having error in my open edx search but i wanted to check if this is a normal behaviour:

 ![Captura de Pantalla 2020-06-26 a la(s) 18.04.10](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/4/4d9a77fd0ada2b487ee5774d73726e084792a366.png)

---

<div class="post-metadata">

**Author:** ![vahidch75](https://avatars.discourse-cdn.com/v4/letter/v/74df32/32.png) [@vahidch75](https://discuss.openedx.org/u/vahidch75)\
**Post date:** [January 15, 2023, 9:46am UTC](https://discuss.openedx.org/t/elasticsearch-test-queries-page-at-ip-the-query-is-invalid/2572/2 "2023-01-15T09:46:31Z")

</div>

Maybe you found your answer but for all newcomers to this QA,first check the API calls . in my case it was happened because I didn’t login as superuser to discovery service. to do that follow these:

- tutor:  
if you use tutor for deploying the opened just `exec` in the discovery container and create a superuser
- devstack:  
if so, follow the [opendx discovery docs](https://edx-discovery.readthedocs.io/en/latest/introduction.html#creating-accessing-the-discovery-service-django-admin)  
After creating the user,just login to admin page and rerun your queries.hope the best
