[solved] - BulkIndexError - Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes

Hello !

I've problem with bulkinsert. I don't understand this error
('Unexpected error:', (<class 'elasticsearch.helpers.errors.BulkIndexError'>, BulkIndexError('7 document(s) failed to index.', [{u'index': {u'status': 400, u'_type': u'doc_type', u'_index': u'esm_v1-20190519', u'error': {u'caused_by': {u'reason': u'Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes', u'type': u'not_x_content_exception'}, u'reason': u'failed to parse', u'type': u'mapper_parsing_exception'}

Same document work fine (no mapping problem), when I insert them one by one.

Any idea about the reason of BulkIndexError ?

Regards.

Have you formatted your requests in the bulk format? How are you indexing the data?

yes, it was that AND an error in value
[{"a":"1"}] au lieu de {"a":"1"}

thank you !

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.