airflow icon indicating copy to clipboard operation
airflow copied to clipboard

Webserver - Rendered JdbcOperator results in Internal server error (500)

Open jomar83 opened this issue 11 years ago • 2 comments

In the webserver choosing a JdbcOperator then trying to display the rendered template results in an internal server error. That happens if the sql argument is a list and not a single sql string. The SqlLexer expects a string and calls decode on it... Of course that doesn't work on a list.

AttributeError: 'list' object has no attribute 'decode'

@mistercrunch we can fix it, the question is what the rendering result is supposed to be and if we should write a custom (Delegating or something like that) Lexer for this issue.

jomar83 avatar Sep 09 '15 12:09 jomar83

This bug was affecting all templated items that would be a list or a dict, this should address it: https://github.com/airbnb/airflow/pull/374

mistercrunch avatar Sep 09 '15 18:09 mistercrunch

Great, thanks!

jomar83 avatar Sep 10 '15 18:09 jomar83