Elasticsearch:TransportError(406,u'缺少Content-Type标头')

时间:2019-03-20 09:12:47

标签: elasticsearch

我只是刚开始学习Elasticsearch,但对此有疑问,但是找不到解决此问题的方法。这是我的问题

File "/home/dat/.local/lib/python2.7/site-packages/elasticsearch/connection/base.py", line 105, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
TransportError: TransportError(406, u'Content-Type header is missing')

我不知道为什么。现在,我使用的是Elastsearch 6.4.2版。.

0 个答案:

没有答案