ES is giving error

curl -XPOST "http://localhost:9200/myindex/tweet/" -d'
{
    "content": "Hello World!",
    "postDate": "2009-11-15T14:12:12"
}'

{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

using ES 6, ubuntu 16.04

anyone can point the error i doing ?

You will need to set the correct content type as outlined in this blog post.

1 Like

thanks for the help. appreciate it.

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