Here is the full error log:
Traceback (most recent call last):
File "es.py", line 83, in download_job "query": {"match_all": {}}
File "/home/username/anaconda3/lib/python3.6/site-packages/elasticsearch/client/utils.py", line 76, in _wrapped return func(*args, params=params, **kwargs) File "/home/username/anaconda3/lib/python3.6/site-packages/elasticsearch/client/__init__.py", line 655, in search doc_type, '_search'), params=params, body=body) File "/home/username/anaconda3/lib/python3.6/site-packages/elasticsearch/transport.py", line 318, in perform_request status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout)
File "/home/username/anaconda3/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 185, in perform_request
self._raise_error(response.status, raw_data) File "/home/username/anaconda3/lib/python3.6/site-packages/elasticsearch/connection/base.py", line 125, in _raise_error raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info) elasticsearch.exceptions.NotFoundError: <unprintable NotFoundError object>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/username/anaconda3/lib/python3.6/logging/__init__.py", line 992, in emit msg = self.format(record)
File "/home/username/anaconda3/lib/python3.6/logging/__init__.py", line 838, in format return fmt.format(record)
File "/home/username/anaconda3/lib/python3.6/logging/__init__.py", line 575, in format record.message = record.getMessage() File "/home/username/anaconda3/lib/python3.6/logging/__init__.py", line 336, in getMessage msg = str(self.msg)
File "/home/username/anaconda3/lib/python3.6/site-packages/elasticsearch/exceptions.py", line 58, in __str__ cause = ', %r' % self.info['error']['root_cause'][0]['reason'] TypeError: string indices must be integers Call stack:
File "es.py", line 187, in <module> download_job ()
File "es.py", line 167, in download_job logging.error(ex)
Message: NotFoundError(404, 'Not Found', {'statusCode': 404, 'error': 'Not Found', 'message': 'Not Found'}) Arguments: ()