Skip to content

InfoResponse MissingRequiredPropertyException #335

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

Closed
cliff-sizer-insightsoftware-com opened this issue Jul 1, 2022 · 3 comments
Closed
Labels
Category: Bug Something isn't working

Comments

@cliff-sizer-insightsoftware-com

Java API client version

8.3.1

Java version

11

Elasticsearch Version

8.3.1

Problem description

MissingRequiredPropertyException being thrown by the co.elastic.clients.elasticsearch.core.InfoResponse because "build_flavor" : "default" has disappeared in ES 8.3.1

@dadoonet
Copy link
Member

dadoonet commented Jul 4, 2022

I'm seeing the same error.

The workaround until it's fixed is:

ApiTypeHelper.DANGEROUS_disableRequiredPropertiesCheck(true);
InfoResponse info = client.info();
ApiTypeHelper.DANGEROUS_disableRequiredPropertiesCheck(false);

@sethmlarson
Copy link
Contributor

Thanks @dadoonet for providing a work-around. I've created an issue upstream to fix this issue.

@swallez
Copy link
Member

swallez commented Jul 11, 2022

The field has been added back in elastic/elasticsearch#88336 and will be in 8.3.3. This issue can therefore be closed as there's nothing that needs to be done on the Java client side.

Also note that @dadoonet's workaround is explained in the "troubleshooting" section of the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants