These are chat archives for getredash/redash

6th
Mar 2017
deecay
@deecay
Mar 06 2017 02:08
@arikfr Glad to be able to help :smile:
Jens Lukas
@jenslukas
Mar 06 2017 17:03
Hi, just updated to from 0.11 to 1.0 rc2. Now we are having problems with the API. Query refresh call (with parameters) returns Internal Server Error
Traceback
[2017-03-06 17:00:44,497][PID:1919][ERROR][redash] Exception on /api/queries/38/refresh [POST]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1639, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1625, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/local/lib/python2.7/dist-packages/flask_restful/init.py", line 477, in wrapper
resp = resource(args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask_login/utils.py", line 228, in decorated_view
return func(
args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask/views.py", line 84, in view
return self.dispatch_request(*args,
kwargs)
File "/opt/redash/redash.1.0.0-rc.2.b2777/redash/handlers/base.py", line 28, in dispatch_request
return super(BaseResource, self).dispatch_request(args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask_restful/init.py", line 587, in dispatch_request
resp = meth(
args, **kwargs)
File "/opt/redash/redash.1.0.0-rc.2.b2777/redash/handlers/queries.py", line 266, in post
return run_query(query.data_source, parameter_values, query.query_text, query.id)
File "/opt/redash/redash.1.0.0-rc.2.b2777/redash/handlers/query_results.py", line 48, in run_query
job = enqueue_query(query_text, data_source, current_user.id, metadata={"Username": current_user.email, "Query ID": query_id})
File "/usr/local/lib/python2.7/dist-packages/werkzeug/local.py", line 343, in getattr
return getattr(self._get_current_object(), name)
AttributeError: 'ApiUser' object has no attribute 'email'
shall I create an issue?