Malformed action/metadata line [1], expected START_OBJECT or END_OBJECT but found [VALUE_NUMBER]

Hi,
can someone help wts i am doing wrong, basically i am reading data from aws s3 and sending to elasticsearch via lambda.

Python code: https://pastebin.com/qeDRQ0hQ
Getting Json: https://pastebin.com/tM4jZStB
Error:
b'
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Malformed action/metadata line [1], expected START_OBJECT or END_OBJECT but found [VALUE_NUMBER]"
}
],
"type": "illegal_argument_exception",
"reason": "Malformed action/metadata line [1], expected START_OBJECT or END_OBJECT but found [VALUE_NUMBER]"
},
"status": 400
}
'

Which elasticsearch API are you calling?
Can you print what is really sent to elasticsearch (the full http request I mean)?

This is sorted out. Now i have parsed each requirement records. yes i was doing wrong method on bulk request. Now i don't need required bulk request.

Thanks

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