Skip to content
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

Error deserializing co.elastic.clients.elasticsearch.ml.Anomaly: co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'AnomalyCause.byFieldName' #916

Open
yeongchuin opened this issue Dec 9, 2024 · 1 comment
Labels
Area: Specification Related to the API spec used to generate client code Category: Bug Something isn't working

Comments

@yeongchuin
Copy link

Java API client version

7.17.6

Java version

8

Elasticsearch Version

7.17.6

Problem description

When sending a GetRecordsRequest to retrieve ML records, the deserialization of the Anomaly object fails due to a missing required property 'byFieldName' in the AnomalyCause class.

co.elastic.clients.json.JsonpMappingException: Error deserializing co.elastic.clients.elasticsearch.ml.Anomaly: co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'AnomalyCause.byFieldName' (JSON path: records[0].causes[0]) (line no=1, column no=839, offset=-1)

@l-trotta
Copy link
Contributor

l-trotta commented Dec 9, 2024

Hello, thank you for reporting this! It's an issue in the API specification used to produce the Java code. Once the API specification is fixed, the Java client code will be updated to resolve this issue.

@l-trotta l-trotta added Category: Bug Something isn't working Area: Specification Related to the API spec used to generate client code labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Specification Related to the API spec used to generate client code Category: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants