Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch of version 6.0 cannot upload data. #72

Open
One1W opened this issue Mar 8, 2018 · 2 comments
Open

Elasticsearch of version 6.0 cannot upload data. #72

One1W opened this issue Mar 8, 2018 · 2 comments

Comments

@One1W
Copy link

One1W commented Mar 8, 2018

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

@mzinboy
Copy link

mzinboy commented Apr 17, 2018

You should modify redis-stat/lib/redis-stat/elasticsearch.rb file.

`
24 def initialize hosts, elasticsearch
25 url, @index = elasticsearch
26 @hosts = hosts
27 @client = Elasticsearch::Client.new :url => url,
28 transport_options: {
29 headers: { 'Content-Type' => 'application/json' }
30 }
31 end

`

@wkcaeser
Copy link

use nginx

proxy_set_header Content-Type application/json;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants