Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jomar83 opened this issue Sep 9, 2015 · 2 comments
Closed
Labels
kind:bug This is a clearly a bug

Comments

@jomar83
Copy link
Contributor

jomar83 commented Sep 9, 2015

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.

@mistercrunch mistercrunch added the kind:bug This is a clearly a bug label Sep 9, 2015
@mistercrunch
Copy link
Member

This bug was affecting all templated items that would be a list or a dict, this should address it:
#374

@jomar83
Copy link
Contributor Author

jomar83 commented Sep 10, 2015

Great, thanks!

kaxil pushed a commit to YingboWang/airflow that referenced this issue Sep 8, 2020
* [AIRBNB][DI-3845] Build smart sensor operator

* [DI-3845][addendum]Support infra retry in smart sensor (apache#372)

* [DI-3845][addendum]Group distributed task log by host (apache#373)

* [DI-3845][addendum]Set the end_of_log only logs on all hosts end (apache#381)

Set end_of_log when logs from all know hosts have been fully loaded or
es query has lasted for 5 mins.

This is to fix the issue that sometime a second worker can pick up a running
task and exit after checking dependency. Checking only the end of log mark for
a host with later timestamp may violate the loading of real running worker.

* [DI-3845][addendum]Fix UI empty log return (apache#383)

* [DI-3845][addendum]Raise infra failure without retry for smart sensor (apache#384)

* [DI-3845][addendum]Add query infor for exception log (apache#387)

Apply Black formatting

Apply Black formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug
Projects
None yet
Development

No branches or pull requests

2 participants