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
}
'