Exception when indexing pdf document

May be it's a problem with curl?

Also there is a default limit in ES which is IIRC 100mb per HTTP request.