title: could not authenticate with the specified node - ElasticSearch
body: <p>Using nest client 7.2.1 to connect to elastic db internal loadbalancer in azure.</p>
  
  <p>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: <a href="http://192.168.0.4:9200/" rel="nofollow noreferrer">http://192.168.0.4:9200/</a> Exception: PipelineException Took: 00:00:00.0506796 # 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. at Elasticsearch.Net.RequestPipeline.ThrowBadAuthPipelineExceptionWhenNeeded(IApiCallDetails details, IElasticsearchResponse response) at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse](RequestData requestData) at Elasticsearch.Net.Transport<code>1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) --- End of inner exception stack trace --- # Audit exception in step 1 BadResponse: Elasticsearch.Net.PipelineException: Could not authenticate with the specified node. Try verifying your credentials or check your Shield configuration. at Elasticsearch.Net.RequestPipeline.ThrowBadAuthPipelineExceptionWhenNeeded(IApiCallDetails details, IElasticsearchResponse response) at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse](RequestData requestData) at Elasticsearch.Net.Transport</code>1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) # Request:  # Response:  Unsuccessful (401) low level call on PUT: /asx-sleepquality # Audit trail of this API call: - [1] BadResponse: Node: <a href="http://192.168.0.4:9200/" rel="nofollow noreferrer">http://192.168.0.4:9200/</a> Exception: PipelineException Took: 00:00:00.4294201 # 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: PUT /asx-sleepquality. ServerError: Type: security_exception Reason: "missing authentication credentials for REST request [/asx-sleepquality]" ---> Elasticsearch.Net.PipelineException: Could not authenticate with the specified node. Try verifying your credentials or check your Shield configuration. at Elasticsearch.Net.RequestPipeline.ThrowBadAuthPipelineExceptionWhenNeeded(IApiCallDetails details, IElasticsearchResponse response) at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse](RequestData requestData) at Elasticsearch.Net.Transport<code>1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) --- End of inner exception stack trace --- # Audit exception in step 1 BadResponse: Elasticsearch.Net.PipelineException: Could not authenticate with the specified node. Try verifying your credentials or check your Shield configuration. at Elasticsearch.Net.RequestPipeline.ThrowBadAuthPipelineExceptionWhenNeeded(IApiCallDetails details, IElasticsearchResponse response) at Elasticsearch.Net.RequestPipeline.CallElasticsearch[TResponse](RequestData requestData) at Elasticsearch.Net.Transport</code>1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) # Request:  # Response:  </p>
  
  <pre><code> const string Url = "http://192.168.0.4:9200"; 
              var settings = new ConnectionSettings(new Uri(Url));
              ElasticSearchClient = new ElasticClient(settings);
  
              var indexes = GetAsxIndexes();
  
              var response = ElasticSearchClient.Ping().DebugInformation;
  </code></pre>