-
Notifications
You must be signed in to change notification settings - Fork 64
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] Endpoint option client.ignore
not working anymore with 2.4.x
#296
Comments
The problem is that The interface is coming from https://github.com/opensearch-project/opensearch-php/pull/233/files#diff-bca1c9c9af8a560484df9795336e323443a882fd8c07bdeda7208b37a314aaeaR19 and there was a realization that the previous exception behaviour need to be restored with #245 The last PR added the But this means there's more missing, because that I guess that's why in I hope this analysis helps a bit and I wish I could make a PR to fix this, but I don't know this project well and the all around impact is way over my head, sorry. |
sure, make a PR if you have already debugged that so far. A test would be nice if you don't feel familiar with that, it is also fine. I would add later a test |
As I said, this is over my head: I see the |
This is fixed in #300 |
@kimpepper I upgraded to 2.4.2 but my provided code snippet still fails: throws an exception, when it shouldn't?
But it shouldn't, the |
What is the bug?
After upgrading to 2.4.1 from 2.3.x, the option to ignore certain HTTP status codes is not working anymore.
How can one reproduce the bug?
Try getting an alias for an index, but the index does not exist.
The outcome is that an exception is thrown:
ps: I'm aware that
ClientBuilder
is deprecatedWhat is the expected behavior?
No exception should be thrown, because I instructed the call to ignore 404, which means a plain array should be returned containing this:
The text was updated successfully, but these errors were encountered: