Open OldrichDlouhy opened 1 month ago
The issue with importing a MySQL connection that includes timeouts might be related to validation checks on the cache_timeout
and metadata_cache_timeout
fields. If these fields are not handled correctly during import, it can lead to errors.
To resolve this, you can:
Remove or Comment Out Timeouts: As you've discovered, commenting out the cache_timeout
and metadata_cache_timeout
fields in the YAML file can bypass the validation issue.
Check Validation Logic: Ensure that the fields are correctly formatted and meet any validation requirements in the Superset version you are using.
Update Superset: If possible, check if there are updates or patches available for Superset that address this issue.
The workaround you've used is effective, but it might be worth investigating if there are any updates or configuration changes that could permanently resolve the issue.
To continue talking to Dosu, mention @dosu.
Bug description
Importing MySQL connection exported on different Superset instance fails on validation.
Expected result: Superset asks for user DB password and imports the connection
Actual results: Import error is shown in the "Connect a database" dialog
Workaround: Extract the connection yaml file from the exported zip file and comment out the timeouts. Repack the zip file and import it.
Original MySQL.yaml:
Fixed MySQL.yaml:
Possibly related issues:
19222
25987
30383
Screenshots/recordings
No response
Superset version
4.0.2
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist