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
Hello, thanks for reporting this! This is a limitation of the java client at the moment, we don't map specific exception responses like this one as we just have the common ErrorResponse type, but hypothetically it shouldn't be too hard to make it accept additional fields, to support cases like this one - I'll see what we can do.
Hey @l-trotta thanks for the response! It's interesting because when I just query for an alias that doesn't exist, it returns the correct 404 response with the correct message. This error only seems to happen when querying for an alias that doesn't exist as well as an alias that does exist, which is telling me that the error is different in both cases and the java client has handling for the former, but not the latter, is this correct?
@kved96 exactly! The error class doesn't recognize fields other than error and status, so when it also includes the correct result it fails to deserialize it.
Java API client version
8.14.3
Java version
17
Elasticsearch Version
8.14.3
Problem description
Running a request for getting indices from aliases throws an UnexpectedJsonEventException when some aliases do not exist, but some do.
Exception cause:
To reproduce, create an index
test_index
with an aliastest
and an indextest_index2
without an alias, then using the java client run:The intended behavior would be to throw the following exception:
Running the same request via curl produces the following:
The text was updated successfully, but these errors were encountered: