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

406, u'Content-Type header [] is not supported #34

Closed
allwithfly opened this issue Aug 7, 2018 · 2 comments
Closed

406, u'Content-Type header [] is not supported #34

allwithfly opened this issue Aug 7, 2018 · 2 comments

Comments

@allwithfly
Copy link

C:\Users\1234\Desktop\elasticsearch_loader-master\elasticsearch_loader-master>elasticsearch_loader --es-host http://192.168.1.139:9200 --index index --type index csv telekom_sirovi_podaci.csv
2018-08-07 20:30:55.266000 INFO Loading into ElasticSearch
[------------------------------------]2018-08-07 20:30:55.319000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.320000 WARN Chunk 0 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing
2018-08-07 20:30:55.360000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.361000 WARN Chunk 1 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing
2018-08-07 20:30:55.399000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.402000 WARN Chunk 2 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing
2018-08-07 20:30:55.443000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.444000 WARN Chunk 3 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing
2018-08-07 20:30:55.483000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.486000 WARN Chunk 4 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing
2018-08-07 20:30:55.525000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.525000 WARN Chunk 5 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing
2018-08-07 20:30:55.566000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.569000 WARN Chunk 6 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing
2018-08-07 20:30:55.609000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.610000 WARN Chunk 7 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing
2018-08-07 20:30:55.649000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.652000 WARN Chunk 8 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing
2018-08-07 20:30:55.693000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.693000 WARN Chunk 9 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing
2018-08-07 20:30:55.733000 ERROR attempt [1/1] got exception, it is a permanent data loss, no retry any more
2018-08-07 20:30:55.736000 WARN Chunk 10 got exception (TransportError(406, u'Content-Type header [] is not supported')) while processing

ES Must now be specified content-type

https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests

@moshe
Copy link
Owner

moshe commented Aug 8, 2018

Hey @allwithfly, I suspect you had an older version of elasticsearch client installed locally,
can you check what is your installed version?
pip show elasticsearch
I have merged a fix for feature fix

@allwithfly
Copy link
Author

allwithfly commented Aug 9, 2018

Yes, you are right
my elasticsearch version is 1.6.0
Updated
pip install --upgrade elasticsearch
The error no longer appears
thanks.

@moshe moshe closed this as completed Aug 10, 2018
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