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/07/08 21:17:22 UTC

[GitHub] [superset] yiyux commented on issue #19222: Import is not working: An error occurred while importing dashboard: Import dashboard failed for an unknown reason

yiyux commented on issue #19222:
URL: https://github.com/apache/superset/issues/19222#issuecomment-1179365986

   Hello, trying to import datasets via UI from dev env (superset 1.5.0) to a new hosts with 2.0.0rc2
   Same error here
   
   `superset_app             | 2022-07-08 21:14:09,879:INFO:superset.datasets.commands.importers.v0:Importing dataset from file 20220708_200853.yaml
   superset_app             | Error running import command
   superset_app             | Traceback (most recent call last):
   superset_app             |   File "/app/superset/datasets/commands/importers/dispatcher.py", line 57, in run
   superset_app             |     command.run()
   superset_app             |   File "/app/superset/datasets/commands/importers/v0.py", line 266, in run
   superset_app             |     params = json.loads(dataset["params"])
   superset_app             | KeyError: 'params'
   superset_app             | 2022-07-08 21:14:09,880:ERROR:superset.datasets.commands.importers.dispatcher:Error running import command
   superset_app             | Traceback (most recent call last):
   superset_app             |   File "/app/superset/datasets/commands/importers/dispatcher.py", line 57, in run
   superset_app             |     command.run()
   superset_app             |   File "/app/superset/datasets/commands/importers/v0.py", line 266, in run
   superset_app             |     params = json.loads(dataset["params"])
   superset_app             | KeyError: 'params'
   superset_app             | 'params'
   superset_app             | Traceback (most recent call last):
   superset_app             |   File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
   superset_app             |     rv = self.dispatch_request()
   superset_app             |   File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request
   superset_app             |     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
   superset_app             |   File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 89, in wraps
   superset_app             |     return f(self, *args, **kwargs)
   superset_app             |   File "/app/superset/views/base_api.py", line 113, in wraps
   superset_app             |     raise ex
   superset_app             |   File "/app/superset/views/base_api.py", line 110, in wraps
   superset_app             |     duration, response = time_function(f, self, *args, **kwargs)
   superset_app             |   File "/app/superset/utils/core.py", line 1507, in time_function
   superset_app             |     response = func(*args, **kwargs)
   superset_app             |   File "/app/superset/utils/log.py", line 245, in wrapper
   superset_app             |     value = f(*args, **kwargs)
   superset_app             |   File "/app/superset/views/base_api.py", line 98, in wraps
   superset_app             |     return f(self, *args, **kwargs)
   superset_app             |   File "/app/superset/datasets/api.py", line 766, in import_
   superset_app             |     command.run()
   superset_app             |   File "/app/superset/datasets/commands/importers/dispatcher.py", line 68, in run
   superset_app             |     raise exc
   superset_app             |   File "/app/superset/datasets/commands/importers/dispatcher.py", line 57, in run
   superset_app             |     command.run()
   superset_app             |   File "/app/superset/datasets/commands/importers/v0.py", line 266, in run
   superset_app             |     params = json.loads(dataset["params"])
   superset_app             | KeyError: 'params'
   superset_app             | 2022-07-08 21:14:09,881:ERROR:superset.views.base:'params'
   superset_app             | Traceback (most recent call last):
   superset_app             |   File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
   superset_app             |     rv = self.dispatch_request()
   superset_app             |   File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request
   superset_app             |     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
   superset_app             |   File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 89, in wraps
   superset_app             |     return f(self, *args, **kwargs)
   superset_app             |   File "/app/superset/views/base_api.py", line 113, in wraps
   superset_app             |     raise ex
   superset_app             |   File "/app/superset/views/base_api.py", line 110, in wraps
   superset_app             |     duration, response = time_function(f, self, *args, **kwargs)
   superset_app             |   File "/app/superset/utils/core.py", line 1507, in time_function
   superset_app             |     response = func(*args, **kwargs)
   superset_app             |   File "/app/superset/utils/log.py", line 245, in wrapper
   superset_app             |     value = f(*args, **kwargs)
   superset_app             |   File "/app/superset/views/base_api.py", line 98, in wraps
   superset_app             |     return f(self, *args, **kwargs)
   superset_app             |   File "/app/superset/datasets/api.py", line 766, in import_
   superset_app             |     command.run()
   superset_app             |   File "/app/superset/datasets/commands/importers/dispatcher.py", line 68, in run
   superset_app             |     raise exc
   superset_app             |   File "/app/superset/datasets/commands/importers/dispatcher.py", line 57, in run
   superset_app             |     command.run()
   superset_app             |   File "/app/superset/datasets/commands/importers/v0.py", line 266, in run
   superset_app             |     params = json.loads(dataset["params"])
   superset_app             | KeyError: 'params'`
   


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