Skip to content

400 illegal_argument_exception #136

@betty-g

Description

@betty-g

Possibly this is related to issue #132? I'm getting the following messages when I try to run run.py:

2017-06-27 08:27:06 14989 annotator.elasticsearch [INFO] Creating index 'annotator'.
2017-06-27 08:27:06 14989 elasticsearch [WARNING] PUT /annotator/_mapping/annotation [status:400 request:0.010s]
Traceback (most recent call last):
File "run.py", line 114, in
main(sys.argv)
File "run.py", line 67, in main
annotation.Annotation.create_all()
File "/data/ckbooktest/edu/Store/annotator/elasticsearch.py", line 96, in create_all
body=mapping)
File "/data/ckbooktest/edu/Store/pyenv/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 69, in _wrapped
return func(*args, params=params, **kwargs)
File "/data/ckbooktest/edu/Store/pyenv/lib/python2.7/site-packages/elasticsearch/client/indices.py", line 289, in put_mapping
'_mapping', doc_type), params=params, body=body)
File "/data/ckbooktest/edu/Store/pyenv/lib/python2.7/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 "/data/ckbooktest/edu/Store/pyenv/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 93, in perform_request
self._raise_error(response.status, raw_data)
File "/data/ckbooktest/edu/Store/pyenv/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)
elasticsearch.exceptions.RequestError: TransportError(400, u'illegal_argument_exception')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions