elastic / elastic/elasticsearch-java
tasks.get endpoint fails to deserialize response when .response.failures array contains objects
- Lenguaje dominante
- Java
- Estrellas
- 524
- Forks
- 300
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 16
Descripción
### 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]'
Guía de contribución
Línea de trabajo
Comienza con el tasks.get endpoint y co.elastic.clients.elasticsearch.tasks.TaskStatus#failures; después, reproduce la deserialización usando una respuesta cuyo failures array contiene objetos. Sigue el tipo de elemento de lista esperado y verifica que la respuesta documentada se deserializa sin UnexpectedJsonEventException.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- elasticsearch, java
- Área
- api, backend-api-design
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 35/100