System.AggregateException: One or more errors occurred. ---> Elasticsearch.Net.ElasticsearchClientException: The client is unable to verify that the server is Elasticsearch due to an unsuccessful product check call

The below specified two different errors are logged intermittently during the bulk delete operation on a 3 million data. The cron job to delete the records in bulk runs from 8 seconds to 15 seconds on every 2 minutes interval and approximate number of records affected will be 3-5k.

System.AggregateException: One or more errors occurred. ---> Elasticsearch.Net.ElasticsearchClientException: The client is unable to verify that the server is Elasticsearch due to an unsuccessful product check call. Some functionality may not be compatible if the server is running an unsupported product. Call: Status code unknown from: GET / ---> Elasticsearch.Net.PipelineException: The client is unable to verify that the server is Elasticsearch due to an unsuccessful product check call. Some functionality may not be compatible if the server is running an unsupported product. ---> System.Net.WebException: The request was aborted: The request was canceled.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

System.AggregateException: One or more errors occurred. ---> Elasticsearch.Net.ElasticsearchClientException: Maximum timeout reached while retrying request. Call: Status code unknown from: POST /travelogyair/_search?typed_keys=true ---> System.Net.WebException: The request was aborted: The request was canceled.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

Connection String

mstrIndex = pstrIndexName.ToLower();
                    var pool = new SingleNodeConnectionPool(new Uri(ConfigurationManager.AppSettings["ElasticURL"]));
                    _settings = new ConnectionSettings(pool)
                        .ThrowExceptions()
                        .DefaultIndex(mstrIndex)
                        .DisableAutomaticProxyDetection()
                         .DefaultFieldNameInferrer(p => p)
                         .EnableHttpCompression()
                         .MaximumRetries(5)
                         .RequestTimeout(new TimeSpan(0,0,5))
                         .EnableApiVersioningHeader()
                         .DisableDirectStreaming();

Can you please suggest how can this be resolved?

What version of Elasticsearch are you using?

We are using Elasticsearch V 7.17.5 and NEST 7.0.0.

Virtual Server with 8 processor & 16 GB RAM.

1 Like

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