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

Missing header information for ElasticSearch 6.2 #78

Open
nerdstein opened this issue Jun 19, 2018 · 2 comments
Open

Missing header information for ElasticSearch 6.2 #78

nerdstein opened this issue Jun 19, 2018 · 2 comments

Comments

@nerdstein
Copy link

Thank you all for putting together this great tool. I was thrilled to find this.

I am currently getting an error as follows:

{"error":"Content-Type header [] is not supported","status":406}

According to this URL, elasticsearch-dump/elasticsearch-dump#350 , additional headers need to be passed for ElasticSearch 6.x. As follows:

-headers='{"Content-Type": "application/json"}

Could this be a new configuration added?

@nerdstein
Copy link
Author

This is resolved by updating the elasticsearch requirement to the latest version

@jayzeng
Copy link
Owner

jayzeng commented Sep 10, 2019

Yeah, I will roll in some es version detection and insert the header.

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

2 participants