-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] When calling Opensearch Bulk API, host and port are called in a non-combined form. #824
Comments
I believe host should just be the host, not |
Yes, thank you for your reply. As you said, it seems that you can subtract _bulk from the host. However, the code below needs to be modified. An error occurs when executing the code below.
If you put hosts in the list as a string, it works normally.
|
I think this is by design.
this produces
which is incorrect, this is not a host, this is a URL. The error is expected.
produces
There's code in the client that allows you to specify a URL in Is there still a scenario that doesn't behave as you'd expect? |
What is the bug?
As stated in the official document, errors occur in host and port when creating the Client.
https://opensearch.org/docs/latest/clients/python-low-level/
How can one reproduce the bug?
Error
What is the expected behavior?
I re-set the host in the following format and it works normally.
Do you have any additional context?
In summary, it seems that when i create the Opensearch client, i need to create the host and port as a string and then put it in the list.
However, the official document says that i need to save it in dictionary form in the list. Please check this part to fix the bug.
The text was updated successfully, but these errors were encountered: