You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Felix Uellendall (JIRA)" <ji...@apache.org> on 2019/07/03 23:36:00 UTC
[jira] [Assigned] (AIRFLOW-1740) Cannot create/update XCOM via UI
in PY3
[ https://issues.apache.org/jira/browse/AIRFLOW-1740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Uellendall reassigned AIRFLOW-1740:
-----------------------------------------
Assignee: Felix Uellendall
> 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
> Components: ui
> Affects Versions: 1.9.0
> Environment: PY3
> Reporter: Joy Gao
> Assignee: Felix Uellendall
> 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'bar'"}]]
> {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
(v7.6.3#76005)