elastic / elastic/elasticsearch-java

ElasticsearchAsyncSearchClient: Error Responses can't be deserialized

Open
#674 2 comments 0 reactions 0 assignees View on GitHub
Category: Bug
Dominant language
Java
Stars
524
Forks
300
Avg merge
1d 11h
Merged PRs (30d)
16

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.