public ElasticClient EsClient()
{
var nodes = new Uri
{
new Uri($"{_config.ElasticUrl}"),
};
var connectionPool = new StaticConnectionPool(nodes);
var connectionSettings = new ConnectionSettings(connectionPool)
.BasicAuthentication("ID", "PWD");
var elasticClient = new ElasticClient(connectionSettings);
return elasticClient;
}
OriginalException: Elasticsearch.Net.ElasticsearchClientException: Failed to ping the specified node.. Call: unknown resource ---> Elasticsearch.Net.PipelineException: Failed to ping the specified node. ---> System.NotSupportedException: The URI prefix is not recognized.
at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
at System.Net.WebRequest.Create(Uri requestUri)
at Elasticsearch.Net.HttpWebRequestConnection.CreateWebRequest(RequestData requestData)
at Elasticsearch.Net.HttpWebRequestConnection.CreateHttpWebRequest(RequestData requestData)
at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse](RequestData requestData)
at Elasticsearch.Net.RequestPipeline.Ping(Node node)
--- End of inner exception stack trace ---
at Elasticsearch.Net.RequestPipeline.Ping(Node node)
at Elasticsearch.Net.Transport1.Ping(IRequestPipeline pipeline, Node node) at Elasticsearch.Net.Transport1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters)
--- End of inner exception stack trace ---
Audit exception in step 1 PingFailure:
System.NotSupportedException: The URI prefix is not recognized.
at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)
at System.Net.WebRequest.Create(Uri requestUri)
at Elasticsearch.Net.HttpWebRequestConnection.CreateWebRequest(RequestData requestData)
at Elasticsearch.Net.HttpWebRequestConnection.CreateHttpWebRequest(RequestData requestData)
at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse](RequestData requestData)
at Elasticsearch.Net.RequestPipeline.Ping(Node node)
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.>
it should be https, but when `i am trying https://kibana.onoff.ge:9200 this uri besides this kibana.onoff.ge:9200 this gives me this error as original exeption.{"Failed to ping the specified node.. Call: Status code unknown from: HEAD /"}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.