GET /newsout/_search?size=10000 [status:406 request:0.004s]
Traceback (most recent call last):
File "run.py", line 2, in
from webapp import app
File "/home/default/idr/portal/webapp/init.py", line 5, in
import webapp.views
File "/home/default/idr/portal/webapp/views.py", line 11, in
recommender = recommend_articles.recommender_system()
File "/home/default/idr/portal/webapp/recommend_articles.py", line 101, in init
self.create_corpus()
File "/home/default/idr/portal/webapp/recommend_articles.py", line 110, in create_corpus
news = es.search(index='newsout', body={'query': {'match_all': {}}}, size=10000)['hits']['hits']
File "/home/default/idr/venv/lib/python3.6/site-packages/elasticsearch/client/utils.py", line 68, in _wrapped
return func(*args, params=params, **kwargs)
File "/home/default/idr/venv/lib/python3.6/site-packages/elasticsearch/client/init.py", line 497, in search
params=params, body=body)
File "/home/default/idr/venv/lib/python3.6/site-packages/elasticsearch/transport.py", line 307, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/home/default/idr/venv/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 86, in perform_request
self._raise_error(response.status, raw_data)
File "/home/default/idr/venv/lib/python3.6/site-packages/elasticsearch/connection/base.py", line 102, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.TransportError: TransportError(406, 'Content-Type header is not supported')
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.