# Invalid NEST response built from a unsuccessful (401) low level call on HEAD: / # Audit trail of this API call: - \[1\] BadResponse: Node: http://192.168.0.4:9200/

**URL:** <https://discuss.elastic.co/t/invalid-nest-response-built-from-a-unsuccessful-401-low-level-call-on-head-audit-trail-of-this-api-call-1-badresponse-node-http-192-168-0-4-9200/198908>\
**Category:** Elasticsearch\
**Created:** [September 10, 2019, 1:26pm UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-unsuccessful-401-low-level-call-on-head-audit-trail-of-this-api-call-1-badresponse-node-http-192-168-0-4-9200/198908 "2019-09-10T13:26:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumeet\_pawar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sumeet_pawar/32/53925_2.png) [@sumeet\_pawar](https://discuss.elastic.co/u/sumeet_pawar)\
**Post date:** [September 10, 2019, 1:26pm UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-unsuccessful-401-low-level-call-on-head-audit-trail-of-this-api-call-1-badresponse-node-http-192-168-0-4-9200/198908/1 "2019-09-10T13:26:12Z")

</div>

I am connecting to elasticsearch cluster using nest client and getting this issue while adding Index records.

An i missing something?

Nest v 7.2.1  
Elastic version 7.2.1

Exception: Failed to create DB Index for Alarm Event.Invalid NEST response built from a unsuccessful (401) low level call on HEAD: /

# Audit trail of this API call:

- [1] BadResponse: Node: [http://192.168.0.4:9200/](http://192.168.0.4:9200/) Exception: PipelineException Took: 00:00:00.0588591

# OriginalException: Elasticsearch.Net.ElasticsearchClientException: Could not authenticate with the specified node. Try verifying your credentials or check your Shield configuration.. Call: Status code 401 from: HEAD / ---\> Elasticsearch.Net.PipelineException: Could not authenticate with the specified node. Try verifying your credentials or check your Shield configuration.

```
    var addresses = new[] {
    new Uri("http://192.168.0.4:9200/"),
    new Uri("http://192.168.0.5:9200/"),
    new Uri("http://192.168.0.6:9200/"),
    new Uri("http://192.168.0.7:9200/"),
};
          connectionPool = new StaticConnectionPool(addresses);
         connectionSettings = new ConnectionSettings(connectionPool).BasicAuthentication("testuser", "Something_123").DisablePing();
            ElasticSearchClient = new ElasticClient(connectionSettings);
  
            var indexes = GetAsxIndexes();
            var response = ElasticSearchClient.Ping().DebugInformation;
```

---

<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:** [October 8, 2019, 1:26pm UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-unsuccessful-401-low-level-call-on-head-audit-trail-of-this-api-call-1-badresponse-node-http-192-168-0-4-9200/198908/2 "2019-10-08T13:26:20Z")

</div>

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