-
Notifications
You must be signed in to change notification settings - Fork 37
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
Header type problem #25
Comments
Happens to me also. i have just followed the sample code provided |
I think this is caused by the introduction of strict content-type checking by ES from version 6.0 on (see: https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests). This script seems not to pass on a content type in the header - thereby creating this issue. |
The same questions! hope to fix it as soon as possible! |
I find the way to solve the Q, just modify the requirements.txt, set the elasticsearch to your version. For example, if your version is 6.x.x you can set: elasticsearch>=6.0.0,<7.0.0 |
Alternatively, if you are using the pip installed version, you can just upgrade elasticsearch ( |
Have this issue with elasticsearch-7.7.1. |
Trying:
python csv2es.py --index-name test --doc-type test --import-file test.csv
gives:
I'm not an elasticsearch expert so, forgive me if this is something idiot.
The text was updated successfully, but these errors were encountered: