Getting 400 when using airflow rest api to trigger airflow dag #45539
Replies: 2 comments 8 replies
-
I think you need to show the whole stacktrace if you want to get help, it's hard to say who and where is causing this syntax error. My guess it's something about your DAG definition of parameters, but it's just a guess. |
Beta Was this translation helpful? Give feedback.
-
I was looking forward to using this to allow GitHub Actions to trigger DAG runs from the Airflow REST API, but I am getting the same error as @vimalgalani28 on Airflow v2.10.4, using Basic authentication: Request with cURL:
Response:
Here are the only logs I see for the request:
@potiuk Could we please reopen this discussion? |
Beta Was this translation helpful? Give feedback.
-
I am using airflow version 2.9.2 and trying to trigger dag using airflow rest api. PFA curl:
Getting response as below:
I checked airflow server logs. It gives me error as below:
│ <unknown>:160 SyntaxWarning: invalid escape sequence '\;'
Checked airflow docs. The only required field is conf and dag id in request param. Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions