feluelle edited a comment on issue #5530: [AIRFLOW-1740] Fix xcom creation and 
update via UI
URL: https://github.com/apache/airflow/pull/5530#issuecomment-508506602
 
 
   And this is 1.10.4rc2 RBAC (the same as in classic UI) @ashb @XD-DENG 
   ```
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/orm/session.py",
 line 466, in _prepare_impl
       self.session.flush()
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/orm/session.py",
 line 2446, in flush
       self._flush(objects)
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/orm/session.py",
 line 2584, in _flush
       transaction.rollback(_capture_exception=True)
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py",
 line 67, in __exit__
       compat.reraise(exc_type, exc_value, exc_tb)
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/util/compat.py",
 line 277, in reraise
       raise value
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/orm/session.py",
 line 2544, in _flush
       flush_context.execute()
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py",
 line 416, in execute
       rec.execute(self)
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py",
 line 583, in execute
       uow,
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/orm/persistence.py",
 line 245, in save_obj
       insert,
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/orm/persistence.py",
 line 1116, in _emit_insert_statements
       statement, params
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/engine/base.py",
 line 980, in execute
       return meth(self, multiparams, params)
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/sql/elements.py",
 line 273, in _execute_on_connection
       return connection._execute_clauseelement(self, multiparams, params)
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/engine/base.py",
 line 1099, in _execute_clauseelement
       distilled_params,
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/engine/base.py",
 line 1174, in _execute_context
       e, util.text_type(statement), parameters, None, None
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/engine/base.py",
 line 1458, in _handle_dbapi_exception
       util.raise_from_cause(sqlalchemy_exception, exc_info)
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/util/compat.py",
 line 296, in raise_from_cause
       reraise(type(exception), exception, tb=exc_tb, cause=cause)
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/util/compat.py",
 line 276, in reraise
       raise value.with_traceback(tb)
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/engine/base.py",
 line 1171, in _execute_context
       context = constructor(dialect, self, conn, *args)
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/engine/default.py",
 line 703, in _init_compiled
       param.append(processors[key](compiled_params[key]))
     File 
"/Users/feluelle/venv/apache-airflow/lib/python3.6/site-packages/sqlalchemy/sql/sqltypes.py",
 line 905, in process
       return DBAPIBinary(value)
   sqlalchemy.exc.StatementError: (builtins.TypeError) memoryview: a bytes-like 
object is required, not 'str' [SQL: 'INSERT INTO xcom ("key", value, timestamp, 
execution_date, task_id, dag_id) VALUES (?, ?, ?, ?, ?, ?)'] [parameters: 
[{'value': 'value1', 'dag_id': 'example_bash_operator', 'key': 'key1', 
'execution_date': datetime.datetime(2019, 7, 4, 16, 42, 23), 'task_id': 
'run_me_0'}]]
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to