-
Notifications
You must be signed in to change notification settings - Fork 183
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] timeout
argument gives error for python client.search(.., timeout=400)
#817
Comments
Moved this to opensearch-py. Looks like a bug, appreciate a fix/test @silkspace if you want to give it a shot? |
Also note #810 that may have fixed/introduced this, cc: @borisevich-a-v. |
I think i will rebuild my docker with the latest version of |
Noticing that perhaps @borisevich-a-v's fix hasn't made it into the latest release? |
It hasn't been released yet, help make sure it did fix the problem/add tests for the specific example you're using? I can cut a release soon. |
I tested docker build using latest OS main: |
Thanks for testing @silkspace, help us fix it? |
I think #816 is closer to the issue. |
Describe the bug
timeout
argument to client.search(.., timeout=400) throws error when specified as eitherint
orfloat
. Fortimeout=None
it defaults to 10 seconds.Error msg:
ConnectionError(Timeout value connect was 400, but it must be an int, float or None.) caused by: ValueError(Timeout value connect was 400, but it must be an int, float or None.)
we initialize the client like so:
Related component
Search:Performance
To Reproduce
load client and search an index with timeout argument.
Expected behavior
Expect to be able to set a float, int (or even string) timeout argument
Additional Details
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: