You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/07/16 14:35:08 UTC

[GitHub] [incubator-superset] koshkinsk opened a new issue #10342: Superset - 500 Internal Server Error

koshkinsk opened a new issue #10342:
URL: https://github.com/apache/incubator-superset/issues/10342


   500 Internal Server Error appears if you try to exit the table editor without saving.
   
   ### Expected results
    I expect that I will be thrown out to the list of tables.
   
   ### Actual results
   
   ```
   ERROR:superset:Exception on /tablemodelview/list/ [GET]
   Traceback (most recent call last):
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
       cursor, statement, parameters, context
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
       cursor.execute(statement, parameters)
   psycopg2.DataError: invalid input syntax for type boolean: "y?_flt_1_is_sqllab_view=y"
   LINE 3: WHERE tables.is_sqllab_view != 'y?_flt_1_is_sqllab_view=y'
                                          ^
   
   
   The above exception was the direct cause of the following exception:
   
   Traceback (most recent call last):
     File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
       response = self.full_dispatch_request()
     File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
       raise value
     File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
       rv = self.dispatch_request()
     File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/decorators.py", line 123, in wraps
       return f(self, *args, **kwargs)
     File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/views.py", line 529, in list
       widgets = self._list()
     File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/baseviews.py", line 1074, in _list
       page_size=page_size,
     File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/baseviews.py", line 973, in _get_list_widget
       page_size=page_size,
     File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/models/sqla/interface.py", line 183, in query
       count = query_count.scalar()
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3318, in scalar
       ret = self.one()
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3288, in one
       ret = self.one_or_none()
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3257, in one_or_none
       ret = list(self)
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3330, in __iter__
       return self._execute_and_instances(context)
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3355, in _execute_and_instances
       result = conn.execute(querycontext.statement, self._params)
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 988, in execute
       return meth(self, multiparams, params)
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
       return connection._execute_clauseelement(self, multiparams, params)
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1107, in _execute_clauseelement
       distilled_params,
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
       e, statement, parameters, cursor, context
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1466, in _handle_dbapi_exception
       util.raise_from_cause(sqlalchemy_exception, exc_info)
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 398, in raise_from_cause
       reraise(type(exception), exception, tb=exc_tb, cause=cause)
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 152, in reraise
       raise value.with_traceback(tb)
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
       cursor, statement, parameters, context
     File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
       cursor.execute(statement, parameters)
   sqlalchemy.exc.DataError: (psycopg2.DataError) invalid input syntax for type boolean: "y?_flt_1_is_sqllab_view=y"
   LINE 3: WHERE tables.is_sqllab_view != 'y?_flt_1_is_sqllab_view=y'
   ```
   
   #### How to reproduce the bug
   
   Go into editing the table and after it (without editing)  click back button
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: 0.34.0 , also have some error on 0.999.0dev
   - python version: Python 3.6.9
   - node.js version: v10.21.0
   - npm version: 6.14.4
   
   ### Checklist
   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 there are 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.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] issue-label-bot[bot] commented on issue #10342: Superset - 500 Internal Server Error

Posted by GitBox <gi...@apache.org>.
issue-label-bot[bot] commented on issue #10342:
URL: https://github.com/apache/incubator-superset/issues/10342#issuecomment-659453551


   Issue-Label Bot is automatically applying the label `#bug` to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! 
   
    Links: [app homepage](https://github.com/marketplace/issue-label-bot), [dashboard](https://mlbot.net/data/apache/incubator-superset) and [code](https://github.com/hamelsmu/MLapp) for this bot.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] closed issue #10342: Superset - 500 Internal Server Error

Posted by GitBox <gi...@apache.org>.
stale[bot] closed issue #10342:
URL: https://github.com/apache/incubator-superset/issues/10342


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] dpgaspar commented on issue #10342: Superset - 500 Internal Server Error

Posted by GitBox <gi...@apache.org>.
dpgaspar commented on issue #10342:
URL: https://github.com/apache/incubator-superset/issues/10342#issuecomment-659976983


   Hi,
   
   Can you please post more details on how to reproduce, if you using 0.999.0dev superset identify the commit your on.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] commented on issue #10342: Superset - 500 Internal Server Error

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #10342:
URL: https://github.com/apache/incubator-superset/issues/10342#issuecomment-695712535


   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.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org