Owen-CH-Leung commented on PR #31920:
URL: https://github.com/apache/airflow/pull/31920#issuecomment-1623777828
@pankajkoti Thanks for letting me know about your issue.
I had a look at the log and it seems that the http post request is being
sent to the `_count` endpoint:
`[2023-07-06T12:48:45.441+0000] {base.py:293} WARNING - POST
http://host.docker.internal:9200/_all/_count [status:400 request:0.005s]`
this endpoint is used to count the number of documents matching the given
query, and the _count endpoint does not support sorting defined in the query
below:
https://github.com/apache/airflow/blob/main/airflow/providers/elasticsearch/log/es_task_handler.py#L320
but - how come your webserver will trigger a post request ? And why a post
request will trigger the es_read function (if it's posting something I guess it
should trigger something like `es_write` ?
Would you be able to share your full `airflow.cfg` ? If you have an idea on
how to reproduce this error also, that would be perfect
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]