Basic Authentication not working via python client

Hello! What is the major version of the libary you're using (elasticsearch.__version__)?

If it starts with 7... then you should use http_auth=("username", "password") instead of basic_auth=.... The basic_auth=... parameter was only added in v8.0.0.

1 Like