Open hellojph opened 5 months ago
Hi, Please make sure your creds are correct and the server is up and running:
from elasticsearch import Elasticsearch
# Password for the 'elastic' user generated by Elasticsearch
ELASTIC_PASSWORD = "<password>"
# Create the client instance
client = Elasticsearch(
"https://localhost:9200",
ca_certs="/path/to/http_ca.crt",
basic_auth=("elastic", ELASTIC_PASSWORD)
)
# Successful response!
client.info()
# {'name': 'instance-0000000000', 'cluster_name': ...}
Issue Summary
When using the redash/redash:preview image, it is unable to connect to Elasticsearch. When testing the connection, it returns: "Connection Test Failed: 'server'";