# Error at IndexDocument()

**URL:** <https://discuss.elastic.co/t/error-at-indexdocument/304131>\
**Category:** Elasticsearch\
**Created:** [May 6, 2022, 1:16pm UTC](https://discuss.elastic.co/t/error-at-indexdocument/304131 "2022-05-06T13:16:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frankmehlhop](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@frankmehlhop](https://discuss.elastic.co/u/frankmehlhop)\
**Post date:** [May 6, 2022, 1:16pm UTC](https://discuss.elastic.co/t/error-at-indexdocument/304131/1 "2022-05-06T13:16:14Z")

</div>

I want to inject a data set using C# and elastic + kibana version 8.x.  
On console at Kibana it works fine.  
At the C# code at the **indexResponse** I get the **error message** :

> _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 /_

I checked the net and find [a article about this exception](https://github.com/elastic/elasticsearch-net/issues/6148) and tried to implement the solution at the setting (I add CertificateFingerprint, BasicAuthentication and EnableApiVersioningHeader). But it does not solve the exception.

**What could cause and what could solve that error?**

Thanks, Frank

```auto
    public class Manager
    {
        ElasticClient client;
        public Manager()
        {
            var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
            ConnectionSettings settings = new ConnectionSettings(pool)
                .CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4")
                .BasicAuthentication("elastic", "...")
                .EnableApiVersioningHeader()
                .DefaultIndex("test"); 
            client = new ElasticClient(settings);
        }

        public bool injectData()
        {
            Person person = new Person
            {
                name = "Anna",
                age = 29,
                address = "Beethovenweg 8, 99817 Eisenach"
            };

            IndexResponse indexResponse = client.IndexDocument(person);
            return indexResponse != null;
        }
}

```

at console:

```auto
POST /test/_doc/
{
  "name": "Oliver",
  "age": 29,
  "address": "Germany"
}
GET /test/_search

```

answer to GET command:

```auto
{
  "took" : 4,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : {
      "value" : 1,
      "relation" : "eq"
    },
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "test",
        "_id" : "cBd_mYABTQckRFudSyBa",
        "_score" : 1.0,
        "_source" : {
          "name" : "Oliver",
          "age" : 29,
          "address" : "Germany"
        }
      }
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![frankmehlhop](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@frankmehlhop](https://discuss.elastic.co/u/frankmehlhop)\
**Post date:** [May 9, 2022, 12:52pm UTC](https://discuss.elastic.co/t/error-at-indexdocument/304131/2 "2022-05-09T12:52:36Z")

</div>

> [@frankmehlhop](#):
>
> Status code unknown from: GET /

Strange is the error message, because it should be a POST, not a GET?!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 6, 2022, 12:53pm UTC](https://discuss.elastic.co/t/error-at-indexdocument/304131/3 "2022-06-06T12:53:38Z")

</div>

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