Reputation: 77
Airflow version: 2.1.1
I'm trying to trigger the dag using config and passing below json
{"load_type":"full"}
but it throws an error saying "Invalid JSON configuration, must be a dict"
I tried to format the json as well with 3spaces, 2 spaces etc
{
"load_type":"full"
}
But it didn't work. Before this verison I was using 2.0.2 and I was able to send json while triggering the dag.
Any help would be appreciated. Thanks
Upvotes: 3
Views: 2809
Reputation: 15979
It's a bug in 2.1.1 which was fixed by PR Upgrading to Airflow 2.1.2 should resolve this issue.
In case you can't upgrade triggering the DAG from CLI should work in 2.1.1:
airflow dags trigger [-h] [-c CONF] [-e EXEC_DATE] [-r RUN_ID] [-S SUBDIR] dag_id
Upvotes: 5