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

go List Datasource Access Request throw key error #3901

Closed
3 tasks done
liuzn4ever opened this issue Nov 19, 2017 · 1 comment
Closed
3 tasks done

go List Datasource Access Request throw key error #3901

liuzn4ever opened this issue Nov 19, 2017 · 1 comment
Labels
inactive Inactive for >= 30 days

Comments

@liuzn4ever
Copy link

liuzn4ever commented Nov 19, 2017

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.20.4

Expected results

Actual results

Steps to reproduce

Python3.4.7

When I add a AccessRequest record ,then I go to the 'List Datasource Access Request' it will throw key error,and the key is the datasource_type that I input when I add a record,whatever the datasource_type I input,the error will appear.

   Traceback (most recent call last):

File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/utils.py", line 109, in call
return self.cache[args]
KeyError: (<superset.models.core.DatasourceAccessRequest object at 0x7f6cb0a18c18>,)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask_appbuilder/security/decorators.py", line 26, in wraps
return f(self, *args, **kwargs)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask_appbuilder/views.py", line 478, in list
widgets=widgets)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask_appbuilder/baseviews.py", line 158, in render_template
return render_template(template, **dict(list(kwargs.items()) + list(self.extra_args.items())))
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask/templating.py", line 134, in render_template
context, ctx.app)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask/templating.py", line 116, in _render
rv = template.render(context)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/templates/appbuilder/general/model/list.html", line 2, in top-level template code
{% import 'appbuilder/general/lib.html' as lib %}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask_appbuilder/templates/appbuilder/base.html", line 1, in top-level template code
{% extends base_template %}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/templates/superset/base.html", line 1, in top-level template code
{% extends "appbuilder/baselayout.html" %}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/templates/appbuilder/baselayout.html", line 2, in top-level template code
{% import 'appbuilder/baselib.html' as baselib %}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask_appbuilder/templates/appbuilder/init.html", line 46, in top-level template code
{% block body %}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/templates/appbuilder/baselayout.html", line 21, in block "body"
{% block content %}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/templates/appbuilder/general/model/list.html", line 12, in block "content"
{% block list_list scoped %}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/templates/appbuilder/general/model/list.html", line 13, in block "list_list"
{{ widgets.get('list')()|safe }}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask_appbuilder/widgets.py", line 34, in call
return template.render(args)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask_appbuilder/templates/appbuilder/general/widgets/list.html", line 2, in top-level template code
{% extends 'appbuilder/general/widgets/base_list.html' %}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/templates/appbuilder/general/widgets/base_list.html", line 25, in top-level template code
{% block begin_loop_values %}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask_appbuilder/templates/appbuilder/general/widgets/list.html", line 45, in block "begin_loop_values"
{% for item in value_columns %}
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/jinja2/runtime.py", line 410, in init
self._after = self._safe_next()
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/jinja2/runtime.py", line 430, in _safe_next
return next(self._iterator)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask_appbuilder/models/base.py", line 114, in get_values
retdict[col] = self._get_attr_value(item, col)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/flask_appbuilder/models/base.py", line 58, in _get_attr_value
if not hasattr(item, col):
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/models/core.py", line 870, in datasource_link
return self.datasource.link # pylint: disable=no-member
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/models/core.py", line 858, in datasource
return self.get_datasource
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/utils.py", line 111, in call
value = self.func(*args)
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/models/core.py", line 864, in get_datasource
ds = db.session.query(self.cls_model).filter_by(
File "/usr/local/python3.4/bin/venv/lib/python3.4/site-packages/superset/models/core.py", line 850, in cls_model
return ConnectorRegistry.sources[self.datasource_type]
KeyError: ''

@stale
Copy link

stale bot commented Apr 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 11, 2019
@stale stale bot closed this as completed Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

1 participant