Hi!
I'm trying to create an index using ElasticSearch.Net but it does not work.
I have connection to Elastic since if the index exists I can send a query against it and get a result but when I try to create I get a ping error:
System.InvalidOperationException: CreateIndex in RotatingIndexClient received an 'invalid' response: Invalid NEST response built from a unsuccessful () low level call on PUT: /webtest12epi_2?timeout=1m
# Audit trail of this API call:
- [1] ProductCheckOnStartup: Took: 00:00:00.0007787
- [2] ProductCheckFailure: Node: http://sthlm-04:9200/ Exception: ArgumentOutOfRangeException Took: 00:00:00.0003649
- [3] ProductCheckFailure: Node: http://sthlm-05:9200/ Exception: ArgumentOutOfRangeException Took: 00:00:00.0002105
- [4] ProductCheckFailure: Node: http://sthlm-06:9200/ Exception: ArgumentOutOfRangeException Took: 00:00:00.0001687
- [5] AllNodesDead: Took: 00:00:00.0000053
- [6] Resurrection: Node: http://sthlm-04:9200/ Took: 00:00:00.0000002
- [7] PingFailure: Node: http://sthlm-04:9200/ Exception: ArgumentOutOfRangeException Took: 00:00:00.0002962
# OriginalException: Elasticsearch.Net.ElasticsearchClientException: Failed to ping the specified node. Call: unknown resource
---> Elasticsearch.Net.PipelineException: Failed to ping the specified node.
---> System.ArgumentOutOfRangeException: The specified value must be greater than 0. (Parameter 'value')
Actual value was -1.
at System.Net.HttpWebRequest.GetResponse()
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.Transport`1.Ping(IRequestPipeline pipeline, Node node)
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 2 ProductCheckFailure:
System.ArgumentOutOfRangeException: The specified value must be greater than 0. (Parameter 'value')
Actual value was -1.
at System.Net.HttpWebRequest.GetResponse()
at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse](RequestData requestData)
at Elasticsearch.Net.RequestPipeline.ProductCheck(Node node)
# Audit exception in step 3 ProductCheckFailure:
System.ArgumentOutOfRangeException: The specified value must be greater than 0. (Parameter 'value')
Actual value was -1.
at System.Net.HttpWebRequest.GetResponse()
at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse](RequestData requestData)
at Elasticsearch.Net.RequestPipeline.ProductCheck(Node node)
# Audit exception in step 4 ProductCheckFailure:
System.ArgumentOutOfRangeException: The specified value must be greater than 0. (Parameter 'value')
Actual value was -1.
at System.Net.HttpWebRequest.GetResponse()
at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse](RequestData requestData)
at Elasticsearch.Net.RequestPipeline.ProductCheck(Node node)
# Audit exception in step 7 PingFailure:
System.ArgumentOutOfRangeException: The specified value must be greater than 0. (Parameter 'value')
Actual value was -1.
at System.Net.HttpWebRequest.GetResponse()
at Elasticsearch.Net.HttpWebRequestConnection.Request[TResponse](RequestData requestData)
at Elasticsearch.Net.RequestPipeline.Ping(Node node)
I have also used a WebClient and sent a request against http://sthlm-04:9200 and that also works just fine.
These are newly installed servers and we had to open the port 9200 to get it to work, could it be some firewall issue? We have older machines running the same code that can create index at sthlm-04.
Elastic is 8.2.2 and NEST and Elasticsearch.Net is 7.17.2
Thanks!
/Kristoffer