You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: 299 Elasticsearch-5.6.3-1a2f265 "Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header."
#633
Closed
jsiembida opened this issue
Nov 9, 2017
· 5 comments
HTTP reply without the titular warning (seems similar to #511)
Please describe the actual behavior
HTTP reply with the warning
Any steps to reproduce the behavior?
Send /_bulk index with Content-Type: application/x-ndjson; charset=UTF-8 instead of Content-Type: application/x-ndjson (seems the charset=UTF-8 triggers the warning).
HTTP/1.1 200 OK
Warning: 299 Elasticsearch-5.6.3-1a2f265 "Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header." "Thu, 09 Nov 2017 12:27:08 GMT"
content-type: application/json; charset=UTF-8
content-length: 1492
Again, removing the charset=UTF-8 makes the warning go:
Please use the following questions as a guideline to help me answer
your issue/question without further inquiry. Thank you.
Which version of Elastic are you using?
[ ] elastic.v2 (for Elasticsearch 1.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[x] elastic.v5 (for Elasticsearch 5.x)
[ ] elastic.v6 (for Elasticsearch 6.x)
Please describe the expected behavior
HTTP reply without the titular warning (seems similar to #511)
Please describe the actual behavior
HTTP reply with the warning
Any steps to reproduce the behavior?
Send
/_bulk
index withContent-Type: application/x-ndjson; charset=UTF-8
instead ofContent-Type: application/x-ndjson
(seems thecharset=UTF-8
triggers the warning).Example call:
Reply:
Again, removing the
charset=UTF-8
makes the warning go:And the clean reply now:
Not sure that is expected, especially that ES itself uses
charset=UTF-8
in replies.The text was updated successfully, but these errors were encountered: