Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6307F200D23 for ; Thu, 19 Oct 2017 23:09:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 61ABE1609EE; Thu, 19 Oct 2017 21:09:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A862B1609D7 for ; Thu, 19 Oct 2017 23:09:06 +0200 (CEST) Received: (qmail 77015 invoked by uid 500); 19 Oct 2017 21:09:05 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 77006 invoked by uid 99); 19 Oct 2017 21:09:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2017 21:09:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 25656D0AAE for ; Thu, 19 Oct 2017 21:09:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.501 X-Spam-Level: X-Spam-Status: No, score=-99.501 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id O6_JzwlIexiR for ; Thu, 19 Oct 2017 21:09:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6D06D60CFD for ; Thu, 19 Oct 2017 21:09:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 92D9BE0F3B for ; Thu, 19 Oct 2017 21:09:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id F13D321EE9 for ; Thu, 19 Oct 2017 21:09:00 +0000 (UTC) Date: Thu, 19 Oct 2017 21:09:00 +0000 (UTC) From: "Joy Gao (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AIRFLOW-1740) Cannot create/update XCOM via UI in PY3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 19 Oct 2017 21:09:07 -0000 [ 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)