Hi, I am new to Elasticsearch. What I managed to do so far is to bring up ElasticSearch container and successfully connect to it using both http connection(via Postman) and using python client.
However, now I want to bring up such a container not on my machine. And I managed to bring this machine up and connect using http call. But when I try to connect through python client I get this error:
elastic_transport.TlsError: TLS error caused by: TlsError(TLS error caused by: SSLError(hostname '34.116.***.***' doesn't match either of 'localhost', '172.19.0.2', '127.0.0.1', 'bde723133f75'))
How I connect:
es = Elasticsearch(
https://34.116.***.***:9200",
ca_certs=cert.crt,
basic_auth=(elastic_user, elastic_password),
)
Error occurres on this line res = es.search(index="pdf-documents", query=query)