-
Notifications
You must be signed in to change notification settings - Fork 191
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] NodeInfoRequest fails when connecting to Amazon OpenSearch Service #1129
Comments
Thanks for opening this @dancristiancecoi. Removing the null constraint is likely the right move. As we are working on generating much of this code from spec in #366, please also check https://github.com/opensearch-project/opensearch-api-specification for correctness? |
@dblock I think we can remove these two fields from the required list if my findings are actually correct and its not due to a misconfiguration on my part. Cheers! |
Is the only way to reproduce this behavior to run against AWS serverless? Either way care to contribute the fix into the spec, please? |
I have only seen this issue with Amazon OpenSearch Service. Have not tested Serverless but I suspect it will have a similar behavior. And sure, I will raise an issue & PR. |
PR merged. |
v2.14.0 has been released and includes the fix for this issue |
What is the bug?
When sending a NodeInfoRequest to Amazon OpenSearch Service the request fails with the following error:
Missing required property 'NodeInfo.host'
This issue appears to be caused by Amazon OpenSearch Service obfuscating/removing some fields from the REST API responses that the client code expects to be not null.
Beside NodeInfo.host the following fields are also missing from the response and are causing a similar error:
How can one reproduce the bug?
Do you have any additional context?
I can raise a PR with a fix which consists in removing requireNonNull from these specific fields.
The text was updated successfully, but these errors were encountered: