appbaseio / dejavu

A Web UI for Elasticsearch and OpenSearch: Import, browse and edit data with rich filters and query views, create reference search UIs.
https://dejavu.reactivesearch.io
MIT License
8.36k stars 511 forks source link

Cannot connect to AWS hosted Elasticsearch cluster #409

Open itsmichaelk opened 3 years ago

itsmichaelk commented 3 years ago

General information

Issue Description

Cannot connect to Elastic Search cluster hosted in AWS Elasticsearch Service. In AWS in have the VPC https://vpc-nos-demo-XXXXXXXXXX.eu-central-1.es.amazonaws.com

When I open this link in the browser, I get a JSON with all the data about my cluster. But when I insert this link in the dejavu connector, I get an error stating that the connection was not successfull.

Sadly I cannot see anything in the docker container's logs..

How can I get this UI to work with the hosted ES? Thanks in advance!!

itsmichaelk commented 3 years ago

When I use the same url with :9200 at the end, it seems like it's loading but it looks like it's in an endless loop since nothing happens. Bildschirmfoto 2021-04-23 um 10 27 46

Edit: after approx. 2-3 minutes it stops loading and I get this (the same message when I don't add 9200 to end of the URL): Bildschirmfoto 2021-04-23 um 10 32 56

aaronfay commented 3 years ago

This is most certainly a CORS issue, you need to either deploy a simple API Gateway with proxy passthrough to your cluster, or host an nginx proxy or something.