elasticsearch.AuthenticationException: AuthenticationException(401, 'security_exception', 'unable to authenticate user [elastic] for REST request [/]')

from query_patents.patents_query_tools import query_big_query
from elasticsearch import Elasticsearch, helpers
import configparser

config = configparser.ConfigParser()
config.read('tools/patent_scraper/google_patents/example.ini')

es = Elasticsearch(
    cloud_id=config['ELASTIC']['cloud_id'],
    basic_auth=(config['ELASTIC']['user'], config['ELASTIC']['password'])
)
es.info()

returns

elasticsearch.AuthenticationException: AuthenticationException(401, 'security_exception', 'unable to authenticate user [elastic] for REST request [/]')

I've used "elastic", I've used my user_id, and I've used my email. I cannot think of something else. I copied and pasted the password from the login and I KNOW its correct.

Any idea how to fix this?

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