elastic / elastic/elasticsearch-java
ElasticsearchAsyncSearchClient: Error Responses can't be deserialized
Open
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
Assessment
This issue has not been assessed yet.