Skip to content

Commit ba8772a

Browse files
committed
When retrying we get deserialized data
This is just a hotfix until a better solution with proper tests come along
1 parent f1267b5 commit ba8772a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch/helpers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _process_bulk_chunk(client, bulk_actions, bulk_data, raise_on_exception=True
9292

9393
try:
9494
# send the actual request
95-
resp = client.bulk('\n'.join(bulk_actions) + '\n', **kwargs)
95+
resp = client.bulk('\n'.join(map(client.transport.serializer.dumps, bulk_actions)) + '\n', **kwargs)
9696
except TransportError as e:
9797
# default behavior - just propagate exception
9898
if raise_on_exception:

0 commit comments

Comments
 (0)