Elasticsearch bulk request error

Hi,
I am using this elasticsearch go lib- oliver, I am sending the data to my elastic cluster using the bulk request. But sometimes its failed and showing me this error - "unexpected end of JSON input".
I read many articles about elasticsearch bulk method issues, I guess many developers are facing this problem.
Can someone help me?

It's likely either a problem with the client itself, or how you are providing bulk data to the client. That exception means the bulk syntax was malformed somehow: missing a closing brace, missing the final new-line, bad metadata-action pairs, etc.

I am taking the data from twitter streaming api. I printed all my data. All the json objects coming from the Twitter sound well formatted.

I'd probably lodge a ticket with the Client author to verify everything is being serialized correctly then. You could also capture the packets en-route to the server to make sure it looks good too.