No handler found for uri [/icsne/emails] and method [POST] (version : 8.4.3)

Elastic search running successfully, i created index but i could not create type
following errors is showing in postman
// "error": "no handler found for uri [/icsne/emails] and method [POST]"

and console shows following error
"http client did not trust this server's certificate, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:50324}"

Welcome!

Why do you want to call this endpoint for?
Do you want to create a new document?

If so, the URL is:

POST /icsne/_doc
{
  // YOUR CONTENT HERE
}

See Index API | Elasticsearch Guide [8.4] | Elastic

You can not "create" a type anymore.
If you want to set the mapping, do that when creating the index. See: Create index API | Elasticsearch Guide [8.4] | Elastic

Thanks @dadoonet for your reply
i want to create multple types in one index, is that possible in this version or not ?

Multipe types are not possible since version 6.0, types were deprecated in version 7 and removed in version 8.

Check this blog post.

2 Likes

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