You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Sergio Herrera (JIRA)" <ji...@apache.org> on 2017/05/29 11:15:04 UTC

[jira] [Updated] (AIRFLOW-1252) Experimental API - exception when conf is present in JSON body

     [ https://issues.apache.org/jira/browse/AIRFLOW-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergio Herrera updated AIRFLOW-1252:
------------------------------------
    Summary: Experimental API - exception when conf is present in JSON body  (was: Experimental API - exception when conf is presetn in JSON body)

> Experimental API - exception when conf is present in JSON body
> --------------------------------------------------------------
>
>                 Key: AIRFLOW-1252
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1252
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: api
>    Affects Versions: Airflow 1.8, 1.8.1
>         Environment: Python 2.7
>            Reporter: Sergio Herrera
>            Assignee: Sergio Herrera
>
> When someones calls to the endpoint ``, Airflow never run that request.
> This occurs due to a mismatch between types when calling function trigger_dag(), which is also used by CLI client. That function perform a json.loads(conf) because from CLI the type of conf is String, but in the other side, from experimental API, that type is Dict (because json is processed before to get all data).
> There are two possibilities:
> 1. Look for every use of trigger_dag() function and put json formatting from outside the function.
> 2. In the experimental API, put the conf in a string (with json.dumps()) to allow trigger_dag() the transform into dict.
> I have implemented the second option, so I can make a PR with that if you want.
> Thank you a lot



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)