Skip to content

explainLifecycle API unable to deserialise the response: managed value is the boolean type instead of a string. #882

Closed
@voron86

Description

@voron86

Java API client version

8.15.1

Java version

Kotlin 2.0

Elasticsearch Version

8.x

Problem description

Response to deserialise:

{"indices":{".ds-projects_34567_streams_elastic-storage-test-b7b32332-0284-418f-bfe5-7e2d2aea59c0-2024.09.18-000001":{"index":".ds-projects_34567_streams_elastic-storage-test-b7b32332-0284-418f-bfe5-7e2d2aea59c0-2024.09.18-000001","managed":true,"policy":"projects_34567_ilm_elastic-storage-test-b7b32332-0284-418f-bfe5-7e2d2aea59c0","index_creation_date_millis":1726660947122,"time_since_index_creation":"2.88s","lifecycle_date_millis":1726660947122,"age":"2.88s","phase":"hot","phase_time_millis":1726660947249,"action":"rollover","action_time_millis":1726660947249,"step":"check-rollover-ready","step_time_millis":1726660947249,"phase_execution":{"policy":"projects_34567_ilm_elastic-storage-test-b7b32332-0284-418f-bfe5-7e2d2aea59c0","phase_definition":{"min_age":"0ms","actions":{"rollover":{"max_primary_shard_docs":200000000,"max_docs":100,"min_docs":1,"max_size":"8192b"}}},"version":1,"modified_date_in_millis":1726660946884}}}}

Error:

Error deserializing co.elastic.clients.elasticsearch.ilm.explain_lifecycle.LifecycleExplain: co.elastic.clients.json.UnexpectedJsonEventException: Unexpected JSON event 'VALUE_TRUE' instead of 'VALUE_STRING'

Caused by: co.elastic.clients.json.UnexpectedJsonEventException: Unexpected JSON event 'VALUE_TRUE' instead of 'VALUE_STRING'

I see there were similar bugs with other API deserialisers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions