You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by gi...@git.apache.org on 2017/07/16 10:28:55 UTC
[GitHub] kfk opened a new issue #3144: [SQL Lab] - Can't run query from Postgres database, get stacktrace instead
kfk opened a new issue #3144: [SQL Lab] - Can't run query from Postgres database, get stacktrace instead
URL: https://github.com/apache/incubator-superset/issues/3144
Make sure these boxes are checked before submitting your issue - thank you!
- [x] I have checked the superset logs for python stacktraces and included it here as text if any
- [x] I have reproduced the issue with at least the latest released version of superset
- [x] I have checked the issue tracker for the same issue and I haven't found one similar
### Superset version
0.18.5
### Expected results
Query Results
### Actual results
`<html> <body> <h1>Sorry, something went wrong</h1> <h3>500 - Internal Server Error</h3> <hr> <h2>Stacktrace</h2> <hr> <code> <pre> Traceback (most recent call last): File "/root/env/local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "/root/env/local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request rv = self.handle_user_exception(e) File "/root/env/local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception reraise(exc_type, exc_value, tb) File "/root/env/local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/root/env/local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/root/env/local/lib/python2.7/site-packages/flask_appbuilder/security/decorators.py", line 52, in wraps return f(self, *args, **kwargs) File "/root/env/local/lib/python2.7/site-packages/superset/models/core.py", line 759, in wrapper value = f(*args, **kwargs) File "/root/env/local/lib/python2.7/site-packages/superset/views/core.py", line 2055, in sql_json if data.get('status') == QueryStatus.FAILED: AttributeError: 'NoneType' object has no attribute 'get' </pre> </code> </body> </html>
`
### Steps to reproduce
Connect to a Postgres database.
Create a query in SQL Lab.
Click "Run Query".
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services