You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to get tasks as list with group_by=none option the response cannot be parsed.
The following exception is thrown
UnexpectedJsonEventException: Unexpected JSON event 'START_ARRAY' instead of '[START_OBJECT]'
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.json.JsonpUtils.ensureAccepts(JsonpUtils.java:116)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.json.JsonpDeserializer.deserialize(JsonpDeserializer.java:86)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.json.ObjectDeserializer$FieldObjectDeserializer.deserialize(ObjectDeserializer.java:81)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.json.ObjectDeserializer.deserialize(ObjectDeserializer.java:185)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.json.ObjectDeserializer.deserialize(ObjectDeserializer.java:146)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.json.JsonpDeserializer.deserialize(JsonpDeserializer.java:87)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.json.ObjectBuilderDeserializer.deserialize(ObjectBuilderDeserializer.java:91)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.json.DelegatingDeserializer$SameType.deserialize(DelegatingDeserializer.java:55)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.transport.rest_client.RestClientTransport.decodeResponse(RestClientTransport.java:360)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.transport.rest_client.RestClientTransport.getHighLevelResponse(RestClientTransport.java:326)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.transport.rest_client.RestClientTransport.performRequest(RestClientTransport.java:148)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.opensearch.tasks.OpenSearchTasksClient.list(OpenSearchTasksClient.java:153)
at deployment.njams-6.1.0-SNAPSHOT.war//org.opensearch.client.opensearch.tasks.OpenSearchTasksClient.list(OpenSearchTasksClient.java:166)
What is the bug?
When trying to get tasks as list with
group_by=none
option the response cannot be parsed.The following exception is thrown
A sample request/response looks like
How can one reproduce the bug?
Build and execute a request like this:
client.tasks().list(t -> t.groupBy(GroupBy.None))
What is the expected behavior?
The response should be parsed into a
ListResponse
What is your host/environment?
Java Client: 2.18.0
OpenSearch server: 2.18.0 (Docker)
Do you have any screenshots?
n/a
Do you have any additional context?
n/a
The text was updated successfully, but these errors were encountered: