Error deserializing co.elastic.clients.elasticsearch.ml.Anomaly: co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'AnomalyCause.byFieldName' #916
Labels
Area: Specification
Related to the API spec used to generate client code
Category: Bug
Something isn't working
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)
The text was updated successfully, but these errors were encountered: