Skip to content

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

@yeongchuin

Description

@yeongchuin

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client codeCategory: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions