elasticsearch-py icon indicating copy to clipboard operation
elasticsearch-py copied to clipboard

BulkIndexError cannot be unpickled

Open seagrine opened this issue 1 year ago • 1 comments

It seems like BulkIndexError cannot be unpickled:

unpickle_exception\n inst = func(*args)\n ^^^^^^^^^^^\nTypeError: BulkIndexError.**init**() missing 1 required positional argument: 'errors

This creates problems with some libraries that expect errors to be serializable.

I put together a quick PR to fix this.

seagrine avatar Oct 17 '24 18:10 seagrine