Open
Description
Describe the bug
When anything other than basic auth (username/password) is used, the client instantiation breaks because the username field from the access config isn't dropped, causing the following error:
TypeError: Elasticsearch.__init__() got an unexpected keyword argument 'username'
To Reproduce
Create the elasticsearch connector and set the access configs using api key data. Run check_connection()
on it will reproduce this error.
Fix
To fix, all that should be needed is adding d.pop("api_key_id", None)
after this line: unstructured/ingest/connector/elasticsearch.py#L69