I have a DAG to query some small set of data from elasticsearch.
I have one task to generate the body to query the elastic with some logic.
I’m pushing the body to xcom and then pulling it in the next task that queries the elastic.
I’m getting an error “Expected [SRART_OBJECT] but found [START_ARRAY]”.
Apparently the problem was with xcom.
It is somehow corrupting the body, maybe the indentation or something else, but when I use the same body without passing it in xcom it works good with no error.
Any ideas?
I’m hardly scratching 10kb, I only pass what should be a “query”.
As I said the content in the UI seems OK.
I guess the problem is indentation or something like that.
I don’t know much about ElasticSearch, but, how are you building your query? Are you passing an array? Maybe the query needs to be passed as a string. Your error says it found an array.