Skip to content

bug/elasticsearch connector broken on auth strategies other than username/password #70

Open
@rbiseck3

Description

@rbiseck3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions