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

Joy Gao updated AIRFLOW-1740:
-----------------------------
    Summary: Cannot create/update XCOM via UI in PY3  (was: Cannot add XCOM via 
UI in PY3)

> Cannot create/update XCOM via UI in PY3
> ---------------------------------------
>
>                 Key: AIRFLOW-1740
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1740
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: 1.9.0
>         Environment: PY3
>            Reporter: Joy Gao
>            Priority: Minor
>
> I cannot create/update XCOM via UI in PY3.
> When attempting to update an existing dag's xcom, the following error is 
> received:
> {code:java}
> Failed to update record. (builtins.TypeError) string argument without an 
> encoding [SQL: 'UPDATE xcom SET value=%s WHERE xcom.id = %s'] [parameters: 
> [{'xcom_id': 165, 'value': "b'\\x80\\x03J+\\x92\\xdbYa.'"}]]
> {code}
> And for creating a new xcom:
> {code:java}
> Failed to create record. (builtins.TypeError) string argument without an 
> encoding [SQL: 'INSERT INTO xcom (`key`, value, timestamp, execution_date, 
> task_id, dag_id) VALUES (%s, %s, now(), %s, %s, %s)'] [parameters: 
> [{'execution_date': datetime.datetime(2017, 10, 7, 1, 1), 'value': 'bar', 
> 'task_id': 'test_task', 'key': 'foo', 'dag_id': 'test_dag'}]]
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to