-
Notifications
You must be signed in to change notification settings - Fork 1.2k
MultiSearch() throws UnexpectedTransportException: Unable to deserialize union. #7742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks similar to #7169 |
If I add a MultisearchHeader in the SearchRequestItems, the method works as expected. var multiSearchResponse = await _elasticsearchClient.MultiSearchAsync<Place>(r =>
{
foreach (var fullTextQuery in fullTextQueries)
{
r.AddSearch(new SearchRequestItem(
new MultisearchHeader { Index = "my-index" },
new MultisearchBody { Size = 1, Query = BuildQuery(fullTextQuery) }));
}
}); I think there is still a response deserialization error that prevents retrieving the server exception message. |
Hi @LionelVallet, does that bug still exist in 8.13.x? |
Hi @flobernd, I don't have time to manage the breaking changes of version 8.13 this month, but I can answer you next month. |
Hi @flobernd, with the same code and the 8.13.11 package, it throws this exception: var multiSearchResponse = await _elasticsearchClient.MultiSearchAsync<Place>(r =>
{
foreach (var fullTextQuery in fullTextQueries)
{
r.AddSearches(new SearchRequestItem(
new MultisearchHeader { Index = "my-index" },
new MultisearchBody { Size = 1, Query = BuildQuery(fullTextQuery) }));
}
});
|
Hi @LionelVallet, thanks for testing. It seems like the new generator solved the initial issue, but caused other issues:
I'll try to provide a fix later this week! |
Elastic.Clients.Elasticsearch version: 8.1.1
Elasticsearch version: 8.8.0
.NET runtime version: 7.0.5
Operating system version: Debian 11
Description of the problem including expected versus actual behavior:
Multiget() with unknown id throws UnexpectedTransportException: Unable to deserialize union.
Steps to reproduce:
Expected behavior
Get a valid Multisearch response
DebugInformation
:The text was updated successfully, but these errors were encountered: