Skip to content

ElasticsearchAsyncSearchClient: Error Responses can't be deserialized #674

Open
@str8y

Description

@str8y

Java API client version

8.7.1

Java version

17

Elasticsearch Version

8.7.1

Problem description

The ElasticsearchAsyncSearchClient expects ErrorResponse in case of an issue.
ErrorResponse has status as a required property but the Elasticsearch error response for asyncSearch requests doesn't have a status -> ErrorResponse can't be deserialized. Instead the Endpoint's ResponseType is returned (if this can be deserialized) and the actual issue is suppressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions