# Elastic Index Using C# Error

**URL:** <https://discuss.elastic.co/t/elastic-index-using-c-error/92094>\
**Category:** Elasticsearch\
**Created:** [July 6, 2017, 12:17pm UTC](https://discuss.elastic.co/t/elastic-index-using-c-error/92094 "2017-07-06T12:17:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAMESHKUMAR502](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@RAMESHKUMAR502](https://discuss.elastic.co/u/RAMESHKUMAR502)\
**Post date:** [July 6, 2017, 12:17pm UTC](https://discuss.elastic.co/t/elastic-index-using-c-error/92094/1 "2017-07-06T12:17:10Z")

</div>

Hi,  
I have Created 14 day's Trail.The connection is Successful but .

When we check is Index Exits.I got Below Error.

Invalid NEST response built from a unsuccessful low level call on HEAD: /instance-

# Audit trail of this API call:

- [1] BadRequest: Node: [https://dacf6a6a8baf50e7c3a7777f1eda27ed.us-east-1.aws.found.io:9243/](https://dacf6a6a8baf50e7c3a7777f1eda27ed.us-east-1.aws.found.io:9243/) Took: 00:00:06.1557450

# OriginalException: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---\> System.Net.Http.WinHttpException: A connection with the server could not be established

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at System.Net.Http.WinHttpHandler.<StartRequest>d__101.MoveNext() --- End of inner exception stack trace --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()  
at System.Net.Http.HttpClient.d\_\_58.MoveNext()  
--- End of stack trace from previous location where exception was thrown ---  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at Elasticsearch.Net.HttpConnection.Request[TReturn](RequestData requestData) in C:\Users\russ\source\elasticsearch-net-5.x\src\[Elasticsearch.Net](http://Elasticsearch.Net)\Connection\HttpConnection-CoreFx.cs:line 64

# 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.\>

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [July 7, 2017, 12:22pm UTC](https://discuss.elastic.co/t/elastic-index-using-c-error/92094/2 "2017-07-07T12:22:27Z")

</div>

Can you show your `ConnectionSettings` and how you're instantiating the client?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 4, 2017, 12:22pm UTC](https://discuss.elastic.co/t/elastic-index-using-c-error/92094/3 "2017-08-04T12:22:33Z")

</div>

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