镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

tasks.get endpoint fails to deserialize response when .response.failures array contains objects #331

Open

Description

@csshepard

Java API client version

8.2.3

Java version

11

Elasticsearch Version

8.2.0

Problem description

When a response from the tasks.get endpoint includes a list of failures, co.elastic.clients.elasticsearch.tasks.TaskStatus#failures does not deserialize, and causes a co.elastic.clients.json.UnexpectedJsonEventException error. The response from the server is a list of Objects, but TaskStatus is expecting a list of Strings.
When it is deserialized, the following error message emitted:

Unexpected JSON event 'START_OBJECT' instead of '[KEY_NAME, VALUE_STRING, VALUE_NUMBER, VALUE_TRUE, VALUE_FALSE]'

Activity

  1. d2a-jbroek commented on Jul 14, 2022

    @d2a-jbroek

    The problem also occurs with client 7.17.5, ES 7.17.5, Java 17.0.3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions