Trouble connecting to ElasticSearch Cloud via python library


(David9) #1

Using https://elasticsearch-py.readthedocs.io/en/master/

Can't connect, it's telling me "elasticsearch.exceptions.ImproperlyConfigured: Root certificates are missing for certificate validation. Either pass them in using the ca_certs parameter or install certifi to use it automatically." I didn't think certs were required to connect to Cloud instance, I'm guessing I'm just using this constructor incorrectly?

es = Elasticsearch(
['https://xxxxx.us-east-1.aws.found.io'],
http_auth=('elastic', 'password'),
scheme="https",
port=9243
)


(David9) #2

SOLUTION: I inserted verify_certs=False and this now works.


(system) #3

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