Petro Gromovo
Petro Gromovo

Reputation: 2241

have error in postman with POST request to elasticsearch

Making first steps in elasticsearch and reading article https://www.elastic.co/blog/a-practical-introduction-to-elasticsearch I try to send requests in postman and got error:

"error": "Content-Type header [multipart/form-data; boundary=--------------------------039246746046020007284747] is not supported", "status": 406

I filled 2 tabs in postman:
https://i.sstatic.net/pXkOa.jpg

https://i.sstatic.net/aDv5n.jpg

Which options did I miss ?

Thanks!

Upvotes: 0

Views: 1127

Answers (1)

Joe - Check out my books
Joe - Check out my books

Reputation: 16943

Send the body as raw JSON:

enter image description here

You've chosen form-data which is not supported in ES. It's JSON-in, JSON-out.

Upvotes: 2

Related Questions