ghatwar commented on issue #3780: Clicking on slices results in 500 Internal 
server error 
URL: 
https://github.com/apache/incubator-superset/issues/3780#issuecomment-343033657
 
 
   Updated to latest version still there is error. 
   
   I run the data split by geometry from 
https://mapzen.com/documentation/metro-extracts/file-format/ in json in slices. 
Since then I was getting that error.
   
   Now i can click on slices tab but i select any slice or dashboard i get the 
following error.
   
   I removed that now I am getting new error
   --------------------
   Sorry, something went wrong
   
   500 - Internal Server Error
   
   Stacktrace
   ```
            Traceback (most recent call last):
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/engine/base.py", 
line 1182, in _execute_context
       context)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/engine/default.py", 
line 470, in do_execute
       cursor.execute(statement, parameters)
   psycopg2.ProgrammingError: column dbs.impersonate_user does not exist
   LINE 1: ...ma, dbs.extra AS dbs_extra, dbs.perm AS dbs_perm, dbs.impers...
                                                                ^
   
   
   The above exception was the direct cause of the following exception:
   
   Traceback (most recent call last):
     File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 
1982, in wsgi_app
       response = self.full_dispatch_request()
     File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 
1614, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 
1517, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/app/.heroku/python/lib/python3.6/site-packages/flask/_compat.py", 
line 33, in reraise
       raise value
     File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 
1612, in full_dispatch_request
       rv = self.dispatch_request()
     File "/app/.heroku/python/lib/python3.6/site-packages/flask/app.py", line 
1598, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/superset/models/core.py", line 
848, in wrapper
       value = f(*args, **kwargs)
     File "/app/.heroku/python/lib/python3.6/site-packages/superset/utils.py", 
line 601, in wraps
       return f(self, *args, **kwargs)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/superset/views/core.py", line 
1069, in explore
       if not self.datasource_access(datasource):
     File 
"/app/.heroku/python/lib/python3.6/site-packages/superset/views/base.py", line 
99, in datasource_access
       self.schema_access(datasource, user=user) or
     File 
"/app/.heroku/python/lib/python3.6/site-packages/superset/views/base.py", line 
92, in schema_access
       self.database_access(datasource.database, user=user) or
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/orm/attributes.py", 
line 237, in __get__
       return self.impl.get(instance_state(instance), dict_)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/orm/attributes.py", 
line 584, in get
       value = self.callable_(state, passive)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/orm/strategies.py", 
line 557, in _load_for_state
       return self._emit_lazyload(session, state, ident_key, passive)
     File "<string>", line 1, in <lambda>
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/orm/strategies.py", 
line 603, in _emit_lazyload
       return loading.load_on_ident(q, ident_key)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/orm/loading.py", 
line 223, in load_on_ident
       return q.one()
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 
2814, in one
       ret = self.one_or_none()
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 
2784, in one_or_none
       ret = list(self)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 
2855, in __iter__
       return self._execute_and_instances(context)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 
2878, in _execute_and_instances
       result = conn.execute(querycontext.statement, self._params)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/engine/base.py", 
line 945, in execute
       return meth(self, multiparams, params)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", 
line 263, in _execute_on_connection
       return connection._execute_clauseelement(self, multiparams, params)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/engine/base.py", 
line 1053, in _execute_clauseelement
       compiled_sql, distilled_params
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/engine/base.py", 
line 1189, in _execute_context
       context)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/engine/base.py", 
line 1402, in _handle_dbapi_exception
       exc_info
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/util/compat.py", 
line 203, in raise_from_cause
       reraise(type(exception), exception, tb=exc_tb, cause=cause)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/util/compat.py", 
line 186, in reraise
       raise value.with_traceback(tb)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/engine/base.py", 
line 1182, in _execute_context
       context)
     File 
"/app/.heroku/python/lib/python3.6/site-packages/sqlalchemy/engine/default.py", 
line 470, in do_execute
       cursor.execute(statement, parameters)
   sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) column 
dbs.impersonate_user does not exist
   LINE 1: ...ma, dbs.extra AS dbs_extra, dbs.perm AS dbs_perm, dbs.impers...
                                                                ^
    [SQL: 'SELECT dbs.created_on AS dbs_created_on, dbs.changed_on AS 
dbs_changed_on, dbs.id AS dbs_id, dbs.verbose_name AS dbs_verbose_name, 
dbs.database_name AS dbs_database_name, dbs.sqlalchemy_uri AS 
dbs_sqlalchemy_uri, dbs.password AS dbs_password, dbs.cache_timeout AS 
dbs_cache_timeout, dbs.select_as_create_table_as AS 
dbs_select_as_create_table_as, dbs.expose_in_sqllab AS dbs_expose_in_sqllab, 
dbs.allow_run_sync AS dbs_allow_run_sync, dbs.allow_run_async AS 
dbs_allow_run_async, dbs.allow_ctas AS dbs_allow_ctas, dbs.allow_dml AS 
dbs_allow_dml, dbs.force_ctas_schema AS dbs_force_ctas_schema, dbs.extra AS 
dbs_extra, dbs.perm AS dbs_perm, dbs.impersonate_user AS dbs_impersonate_user, 
dbs.created_by_fk AS dbs_created_by_fk, dbs.changed_by_fk AS dbs_changed_by_fk 
\nFROM dbs \nWHERE dbs.id = %(param_1)s'] [parameters: {'param_1': 2}]
   ```
      Thanks.   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to