# 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/228088>\
**Category:** Elasticsearch\
**Created:** [April 15, 2020, 10:27am UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/228088 "2020-04-15T10:27:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![buka\_bidzina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/buka_bidzina/32/50141_2.png) [@buka\_bidzina](https://discuss.elastic.co/u/buka_bidzina)\
**Post date:** [April 15, 2020, 10:27am UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/228088/1 "2020-04-15T10:27:44Z")

</div>

Using indexMany mapping, and getting this error:  
Invalid NEST response built from a successful (404) low level call on POST: /cat/\_bulk

# Invalid Bulk items:

# Audit trail of this API call:

- [1] HealthyResponse: Node: [http://localhost:5601/](http://localhost:5601/) Took: 00:00:02.3891127

# Request:

> ```
> {"index":{"_id":"1"}}
> {"id":1,"productCount":0,"name"[{"languageId":0,"text":"Computers"}],"analyzedName":[{"languageId":0,"text":"Computers"}],"seName":[{"languageId":0,"text":"computers"},{"languageId":1,"text":"computers"}]}
> 
> ```

# Response:

`{"statusCode":404,"error":"Not Found","message":"Not Found"}`

# Mapping of cat index:

`PUT cat/_mapping`  
`{`  
`"properties" : {`  
`"id" : {`  
`"type" : "long"`  
`},`  
`"analyzedName" : {`  
`"type" : "nested",`  
`"properties" : {`  
`"languageId" : {`  
`"type" : "integer"`  
`},`  
`"text" : {`  
`"type" : "text",`  
`"analyzer" : "bigram_combiner"`  
`}`  
`}`  
`},`  
`"name" : {`  
`"type" : "nested",`  
`"properties" : {`  
`"languageId" : {`  
`"type" : "integer"`  
`},`  
`"text" : {`  
`"type" : "text"`  
`}`  
`}`  
`},`  
`"seName" : {`  
`"type" : "nested",`  
`"properties" : {`  
`"languageId" : {`  
`"type" : "integer"`  
`},`  
`"text" : {`  
`"type" : "text"`  
`}`  
`}`  
`},`  
`"productCount" : {`  
`"type" : "integer"`  
`}`  
`}`  
`}`

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [April 15, 2020, 11:38am UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/228088/2 "2020-04-15T11:38:22Z")

</div>

The response

```auto
{"statusCode":404,"error":"Not Found","message":"Not Found"}

```

looks familiarly like the one in [Why does the HTTP authentication with Elasticsearch fail in Rust?](https://discuss.elastic.co/t/why-does-the-http-authentication-with-elasticsearch-fail-in-rust/228033).

This doesn't look like a response from Elasticsearch. The Url in the audit trail of `http://localhost:5601/` is the default one for Kibana. Are you sending the request to Kibana instead of sending it to Elasticsearch? The default Url for Elasticsearch running locally is `http://localhost:9200/`

---

<div class="post-metadata">

**Author:** ![buka\_bidzina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/buka_bidzina/32/50141_2.png) [@buka\_bidzina](https://discuss.elastic.co/u/buka_bidzina)\
**Post date:** [April 15, 2020, 11:43am UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/228088/3 "2020-04-15T11:43:09Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/7/576f0978c71473f5b773b7d4e695eaa6c85c8000.png)

yes but, when i run the server it says that the server is running at 5601

---

<div class="post-metadata">

**Author:** ![buka\_bidzina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/buka_bidzina/32/50141_2.png) [@buka\_bidzina](https://discuss.elastic.co/u/buka_bidzina)\
**Post date:** [April 15, 2020, 11:44am UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/228088/4 "2020-04-15T11:44:59Z")

</div>

anyway it fixed it. Thank you.

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [April 15, 2020, 12:06pm UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/228088/5 "2020-04-15T12:06:12Z")

</div>

> [@buka\_bidzina](#):
>
> yes but, when i run the server it says that the server is running at 5601

Kibana is running on `localhost:5601`, but the Elasticsearch clients, like NEST, make calls to Elasticsearch APIs

---

<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:** [May 13, 2020, 12:06pm UTC](https://discuss.elastic.co/t/invalid-nest-response-built-from-a-successful-404-low-level-call/228088/6 "2020-05-13T12:06:17Z")

</div>

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