Content-Type header [] is not supported
See original GitHub issueIn order to help us troubleshoot issues with this project, you must provide the following details:
I seem to be getting the error Content-Type header [] is not supported with Elastic 6 beta.
is there a command line argument I can add to include the content type? This isn’t a problem specific to elasticdump, it is a change in Elasticsearch 6.
Issue Analytics
- State:
- Created 6 years ago
- Comments:30
Top Results From Across the Web
Content-type header not supported - elasticsearch
I am trying following curl to post the json data. curl -XPOST "http://localhost:9200/shakespeare/_bulk?pretty" --data-binary @D:\data\ ...
Read more >Content-Type header [application/vnd.elasticsearch+json; ...
ApiError: ApiError(406, 'Content-Type header [application/vnd.elasticsearch+json; compatible-with=8] is not supported', 'Content-Type header ...
Read more >HTTP request with Content-type not supported
I get an error message in response : "Content-type '' not supported" However I have the following Headers: "Accept-Version": "V2",
Read more >Content-Type - HTTP - MDN Web Docs - Mozilla
In responses, a Content-Type header provides the client with the actual content type of the returned content. This header's value may be ignored...
Read more >406, u'Content-Type header [] is not supported'
How to fix error ElasticHttpError: (406, u'Content-Type header [] is not supported') ... This should resolve the error. However there is work around...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I answered my own question with a simple read of the documentation. I added:
--headers='{"Content-Type": "application/json"}'to the end of my command and it worked splendidly.I am getting @maniankara error (unrecognised token):
I am sending both
--type: dataand--header. I get an error if I do not send the headers (same Content-Type header [] is not supported).