Error with IndexExists

hi, im using nest v6 and it seems to be a bug or me doing something wrong..

when i follow this example:
var request = new IndexExistsRequest(index);
var result = client.IndexExists(request);
i get this error:
Elasticsearch.Net.UnexpectedElasticsearchClientException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
at Elasticsearch.Net.Transport1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) in c:\Projects\elastic\net-master\src\Elasticsearch.Net\Transport\Transport.cs:line 86 at Elasticsearch.Net.ElasticLowLevelClient.IndicesExists[TResponse](String index, IndexExistsRequestParameters requestParameters) in c:\Projects\elastic\net-master\src\Elasticsearch.Net\ElasticLowLevelClient.Generated.cs:line 1164 at Nest.LowLevelDispatch.IndicesExistsDispatch[TResponse](IRequest1 p)
at Nest.ElasticClient.Nest.IHighLevelToLowLevelDispatcher.Dispatch[TRequest,TQueryString,TResponse](TRequest request, Func3 responseGenerator, Func3 dispatch)
at Everest.SystemLog.ElasticLogger.GetOrCreateIndex(ElasticClient client, String index)
at Everest.SystemLog.ElasticLogger.LogEntry[T](LogLevels chiLogLevel, String docId, T entry)
at Everest.SystemLog.LogServices.Log[T](LogLevels chiLogLevel, T entry, String docId)
at SystemLog.Tests.LogTests.TestLoglevelErrorButFatalException() in C:\hrmanager\everest\SystemLog\test\LogTests.cs:line 90

but if i run it async, it works:
var request = new IndexExistsRequest(index);
var result = client.IndexExistsAsync(request).Result;

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.