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

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:

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"
}
}
}

The response

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

looks familiarly like the one in Why does the HTTP authentication with Elasticsearch fail in Rust?.

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/

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

anyway it fixed it. Thank you.

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

1 Like

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