I have been experimenting with some very simply python code to interact with Elasticsearch. Up
until a couple of days ago, everything was working great. I could add data to an index, read from
the index, search, etc....
However, suddenly today, I am getting this error:
AuthenticationException: AuthenticationException(401, 'security_exception', 'missing authentication credentials for REST request [/albums/_doc/6]')
from this code:
from datetime import datetime from elasticsearch import Elasticsearch es = Elasticsearch('http://localhost:9200', basic_auth=("elastic","Elastic")) resp = es.get(index="albums", id=6)
Not only have I not made any authentication changes on the server, If I do the very same
REST queries via either the Elasticsearch Dev Tool Console, or via Postman, they work just
fine (with the exact same credentials).
I am just getting started using the python client code, so this is really making me pull my
hair out. Any help would be appreciated.