# Invalid NEST response built from a successful (404) low level call

**URL:** <https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/273038>\
**Category:** Elasticsearch\
**Created:** [May 14, 2021, 3:30pm UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/273038 "2021-05-14T15:30:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lbrowne2](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@lbrowne2](https://discuss.elastic.co/u/lbrowne2)\
**Post date:** [May 14, 2021, 3:30pm UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/273038/1 "2021-05-14T15:30:17Z")

</div>

I am using .Nest version 7.x and I am trying to post information to a remote elasticsearch log bridge. Using the following code:

```auto
                var object_test= new Dummy_Object{ 
                Dummy_String = "dummy_data",
                Dummy_Int = 3
               };
              ConnectionSettings settings = new ConnectionSettings(new Uri("https://base_url.com/v2/applications"))
                                                                    .BasicAuthentication("user_name", "password")
                                                                    .EnableDebugMode();
                ElasticClient client = new ElasticClient(settings);
                IndexResponse indexResponse = client.Index(new IndexRequest<Dummy_Object>(object_test, "index_IAm_Posting_To"));
                Console.WriteLine(indexResponse.DebugInformation);

```

Yet it does not work, I am not very experienced with using .NEST but have tested this index already and posted data to using this HTTP request:

```auto
https://base_url/v2/applications/index/log

```

Which submitted successfully, i've tested the uri without v2/application but it did not work. Here is the output I am looking at:

Invalid NEST response built from a unsuccessful (404) low level call on POST: `/v2/applications/index/_doc?pretty=true&error_trace=true`

# Audit trail of this API call:

- [1] BadResponse: Node: https://base\_url/v2/applications/ Took: 00:00:01.7605315

# OriginalException: Elasticsearch.Net.ElasticsearchClientException: Request failed to execute. Call: Status code 404 from: POST /v2/applications/index/\_doc?pretty=true&error\_trace=true

# Request:

{"Dummy\_String":"dummy\_data","Dummy\_Int:"3"}

# Response:
Error
```
Cannot POST /v2/applications/index/_doc
```

# TCP states:

Established: 318  
TimeWait: 14  
CloseWait: 17

# ThreadPool statistics:

Worker:  
Busy: 0  
Free: 32767  
Min: 12  
Max: 32767  
IOCP:  
Busy: 0  
Free: 1000  
Min: 12  
Max: 1000

---

<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 11, 2021, 3:30pm UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/273038/2 "2021-06-11T15:30:38Z")

</div>

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