After upgrading Elastic Search NEST from 7.0.0-alpha2 to 7.0.1, I am no longer able to use the IndexExistsAsync method in Nest.ElasticClient.
According to the documentation, the method is removed and is a breaking change, so I changed the call to ElasticClient.Indices.ExistsAsync as follows:
Old code:
var existsResponse = await _elasticClient.IndexExistsAsync(model.Name);
New code:
var existsResponse = await _elasticClient.Indices.ExistsAsync(model.Name);
And with new code I get the following response, which is not really helpful in finding and fixing the issue:
Invalid NEST response built from a successful (404) low level call on HEAD: /12-e449636ee7e1eb1343414698c95ce1e1
Audit trail of this API call:
- [1] HealthyResponse: Node: http://localhost:9200/ Took: 00:00:00.1208228
Request:
Request stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.
Response:
Response stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.
Setting the connectionSettings.DisableDirectStreaming(true);
did not help and I get the exact same response.
Any help is highly appreciated.