castodius commented on PR #33547:
URL: https://github.com/apache/superset/pull/33547#issuecomment-2911339611
Sorry for the slow response, I was AFK for a couple of a days.
When running things locally using the latest version of master I get the
following error. The information about "overwrite=true" feels unimportant, the
import fails before the frontend can provide with me with the option.
> superset_app | 2025-05-27
06:40:02,296:WARNING:superset.commands.importers.v1:Import Error:
{'template_params': ['Not a valid mapping type.']}
superset_app | 2025-05-27
06:40:02,296:WARNING:superset.commands.importers.v1:Import Error:
{'dashboards/FCC_New_Coder_Survey_2018_15.yaml': 'Dashboard already exists and
`overwrite=true` was not passed'}
superset_app | 2025-05-27 06:40:02,296 INFO
sqlalchemy.engine.Engine ROLLBACK
superset_app | 2025-05-27
06:40:02,296:INFO:sqlalchemy.engine.Engine:ROLLBACK
superset_app | 2025-05-27
06:40:02,296:INFO:superset.commands.dashboard.importers.dispatcher:Command
failed validation
superset_app | 2025-05-27
06:40:02,296:WARNING:superset.views.error_handling:CommandException
superset_app | Traceback (most recent call last):
superset_app | File
"/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1484, in
full_dispatch_request
superset_app | rv = self.dispatch_request()
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File
"/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1469, in
dispatch_request
superset_app | return
self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
superset_app |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File
"/app/.venv/lib/python3.11/site-packages/flask_appbuilder/security/decorators.py",
line 109, in wraps
superset_app | return f(self, *args, **kwargs)
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/superset/views/base_api.py", line 120,
in wraps
superset_app | duration, response = time_function(f, self,
*args, **kwargs)
superset_app |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/superset/utils/core.py", line 1371, in
time_function
superset_app | response = func(*args, **kwargs)
superset_app | ^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/superset/utils/log.py", line 304, in
wrapper
superset_app | value = f(*args, **kwargs)
superset_app | ^^^^^^^^^^^^^^^^^^
superset_app | File "/app/superset/views/base_api.py", line 107,
in wraps
superset_app | return f(self, *args, **kwargs)
superset_app | ^^^^^^^^^^^^^^^^^^^^^^^^
superset_app | File "/app/superset/dashboards/api.py", line 1589,
in import_
superset_app | command.run()
superset_app | File
"/app/superset/commands/dashboard/importers/dispatcher.py", line 57, in run
superset_app | command.run()
superset_app | File "/app/superset/utils/decorators.py", line
271, in wrapped
superset_app | return on_error(ex)
superset_app | ^^^^^^^^^^^^
superset_app | File "/app/superset/utils/decorators.py", line
236, in on_error
superset_app | raise ex
superset_app | File "/app/superset/utils/decorators.py", line
264, in wrapped
superset_app | result = func(*args, **kwargs)
superset_app | ^^^^^^^^^^^^^^^^^^^^^
superset_app | File
"/app/superset/commands/importers/v1/__init__.py", line 84, in run
superset_app | self.validate()
superset_app | File
"/app/superset/commands/importers/v1/__init__.py", line 120, in validate
superset_app | raise CommandInvalidError(
superset_app | superset.commands.exceptions.CommandInvalidError:
Error importing dashboard
superset_app | 2025-05-27 06:40:02,302:INFO:werkzeug:192.168.65.1 -
- [27/May/2025 06:40:02] "POST /api/v1/dashboard/import/ HTTP/1.1" 422 -
I believe the error occurs when marshmallow tries to validate the empty
string as a dict. This would be the line:
https://github.com/apache/superset/blob/master/superset/datasets/schemas.py#L285.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]