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 2022/11/28 07:18:36 UTC

[GitHub] [superset] programmeddeath1 opened a new issue, #22237: Unable to Edit Clickhouse Database Settings in Superset

programmeddeath1 opened a new issue, #22237:
URL: https://github.com/apache/superset/issues/22237

   A clear and concise description of what the bug is.
   
   #### How to reproduce the bug
   
   1. Go to Databases and go to Actions for existing Clickhouse Database
   2. Click on the edit icon under actions.
   3. It fails with "An error ocurred while fetching the databases" as shown in screenshot.
   4. See error popup at the bottom and nothing shows up in the edit database window.
   
   ### Expected results
   
   It should show the edit database options to change the IP or port etc.
   
   ### Actual results
   
   It shows a blank edit database screen
   ![ClickhouseSupersetError](https://user-images.githubusercontent.com/44861370/204212506-d2e98de2-204a-4011-910f-ca4fe25abbaa.png)
   
   #### Screenshots
   
   If applicable, add screenshots to help explain your problem.
   
   
   ### Environment
   Superset docker setup 
   (please complete the following information):
   
   - browser type and version:
   - superset version: `superset version`
   - python version: `python --version`
   - node.js version: `node -v`
   - any feature flags active:
   
   ### Checklist
   
   Make sure to follow these steps 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.
   ```_delta_humanized&sortOrder=desc" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
   superset_app            | Object of type immutabledict is not JSON serializable
   superset_app            | Traceback (most recent call last):
   superset_app            |   File "/app/superset/views/base.py", line 210, in wraps
   superset_app            |     return f(self, *args, **kwargs)
   superset_app            |   File "/app/superset/views/base_api.py", line 409, in get_headless
   superset_app            |     duration, response = time_function(super().get_headless, pk, **kwargs)
   superset_app            |   File "/app/superset/utils/core.py", line 1555, in time_function
   superset_app            |     response = func(*args, **kwargs)
   superset_app            |   File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/api/__init__.py", line 1398, in get_headless
   superset_app            |     return self.response(200, **_response)
   superset_app            |   File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/api/__init__.py", line 704, in response
   superset_app            |     _ret_json = jsonify(kwargs)
   superset_app            |   File "/usr/local/lib/python3.8/site-packages/flask/json/__init__.py", line 361, in jsonify
   superset_app            |     f"{dumps(data, indent=indent, separators=separators)}\n",
   superset_app            |   File "/usr/local/lib/python3.8/site-packages/flask/json/__init__.py", line 139, in dumps
   superset_app            |     rv = _json.dumps(obj, **kwargs)
   superset_app            |   File "/usr/local/lib/python3.8/json/__init__.py", line 234, in dumps
   superset_app            |     return cls(
   superset_app            |   File "/usr/local/lib/python3.8/json/encoder.py", line 199, in encode
   superset_app            |     chunks = self.iterencode(o, _one_shot=True)
   superset_app            |   File "/usr/local/lib/python3.8/json/encoder.py", line 257, in iterencode
   superset_app            |     return _iterencode(o, 0)
   superset_app            |   File "/usr/local/lib/python3.8/site-packages/flask/json/__init__.py", line 57, in default
   superset_app            |     return super().default(o)
   superset_app            |   File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default
   superset_app            |     raise TypeError(f'Object of type {o.__class__.__name__} '
   superset_app            | TypeError: Object of type immutabledict is not JSON serializable
   superset_app            | 2022-11-28 07:03:55,630:ERROR:superset.views.base:Object of type immutabledict is not JSON serializable
   ```
   - [√] 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.
   
   ### Additional context
   
   Add any other context about the problem here.
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

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] [superset] rusackas commented on issue #22237: Unable to Edit Clickhouse Database Settings in Superset

Posted by GitBox <gi...@apache.org>.
rusackas commented on issue #22237:
URL: https://github.com/apache/superset/issues/22237#issuecomment-1332506476

   Just to confirm, @programmeddeath1 and @eloymc98, are you seeing this as a clickhouse-specific issue, or is this occurring with other database types as well?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

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] [superset] rusackas closed issue #22237: Unable to Edit Clickhouse Database Settings in Superset

Posted by GitBox <gi...@apache.org>.
rusackas closed issue #22237: Unable to Edit Clickhouse Database Settings in Superset
URL: https://github.com/apache/superset/issues/22237


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

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] [superset] eloymc98 commented on issue #22237: Unable to Edit Clickhouse Database Settings in Superset

Posted by GitBox <gi...@apache.org>.
eloymc98 commented on issue #22237:
URL: https://github.com/apache/superset/issues/22237#issuecomment-1329344836

   I'm facing the same 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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

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] [superset] betodealmeida commented on issue #22237: Unable to Edit Clickhouse Database Settings in Superset

Posted by GitBox <gi...@apache.org>.
betodealmeida commented on issue #22237:
URL: https://github.com/apache/superset/issues/22237#issuecomment-1332513595

   Upgrade `clickhouse-connect` should fix this.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

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] [superset] rusackas commented on issue #22237: Unable to Edit Clickhouse Database Settings in Superset

Posted by GitBox <gi...@apache.org>.
rusackas commented on issue #22237:
URL: https://github.com/apache/superset/issues/22237#issuecomment-1332613256

   Closing this issue, since the update PR has merged. Thanks Beto! @programmeddeath1 holler if this doesn't fully resolve this issue, and we'll re-open if needed.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

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