Error 52 when attempting to add multiple documents

Hello,

I get the error code 52 when posting documents using the "_bulk" api end point. As the error does not happen on all documents, it has been quite hard to trace the cause. Any ideas as to what could be causing this? I am using the Elastica PHP library.

Thanks in advance