Error in BULK


(marion anandappa) #1

I am trying to do a POST -bulk and am getting an error
{
"error": {
"root_cause": [
{
"type": "json_e_o_f_exception",
"reason": "Unexpected end-of-input: expected close marker for Object (start marker at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@5c64fb18; line: 1, column: 1])\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@5c64fb18; line: 1, column: 3]"
}
],
"type": "json_e_o_f_exception",
"reason": "Unexpected end-of-input: expected close marker for Object (start marker at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@5c64fb18; line: 1, column: 1])\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@5c64fb18; line: 1, column: 3]"
},
"status": 500
}

How Can I find the why its failing?


(Nik Everett) #2

Sorry, yeah, that isn't a great error. The problem is that the json on one of your lines is invalid. _bulk first slices the json line by line and then parses it. It does this so the coordinating node doesn't have to parse the json for documents that it is just going to ship off to another node. So each line has to be a valid json document.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.