PipelineException: не удалось аутентифицировать с указанным узломC#

Место общения программистов C#
Ответить
Anonymous
 PipelineException: не удалось аутентифицировать с указанным узлом

Сообщение Anonymous »

Использование Nest Client 7.2.1 для подключения к Elastic DB Internal LoadBalancer в 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: http://192.168.0.4:9200/
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`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`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: http://192.168.0.4:9200/
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`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`1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters)
# Request:
# Response:
< /code>
Использование следующего кода: < /p>
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;


Подробнее здесь: https://stackoverflow.com/questions/578 ... ified-node
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C#»