airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joy Gao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-1740) Cannot add XCOM via UI
Date Thu, 19 Oct 2017 21:09:00 GMT

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

Joy Gao updated AIRFLOW-1740:
-----------------------------
    Environment: PY3
    Description: 
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}





  was:
I cannot create/update XCOM via UI. 

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}






> Cannot add XCOM via UI
> ----------------------
>
>                 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)

Mime
View raw message