fuomag9 opened a new issue #15692: URL: https://github.com/apache/superset/issues/15692
"ERROR: Failed to fetch schemas allowed for csv upload in this database!" when trying to upload CSV ### Expected results No error should happen when uploading CSV to the default docker-compose database. ### Actual results I receive an error stating `ERROR: Failed to fetch schemas allowed for csv upload in this database! Please contact your Superset Admin!` Terminal error: ``` 192.168.165.1 - - [14/Jul/2021:19:51:12 +0000] "GET /csvtodatabaseview/form HTTP/1.1" 200 27340 "http://192.168.165.128:8088/databaseview/list/?pageIndex=0&sortColumn=changed_on_delta_humanized&sortOrder=desc" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0" superset_app | can only concatenate str (not "list") to str superset_app | Traceback (most recent call last): superset_app | File "/app/superset/views/core.py", line 3121, in schemas_access_for_csv_upload superset_app | schemas_allowed = database.get_schema_access_for_csv_upload() superset_app | File "/app/superset/models/core.py", line 675, in get_schema_access_for_csv_upload superset_app | allowed_databases += extra_allowed_databases superset_app | TypeError: can only concatenate str (not "list") to str superset_app | 2021-07-14 19:51:12,677:ERROR:superset.views.core:can only concatenate str (not "list") to str superset_app | Traceback (most recent call last): superset_app | File "/app/superset/views/core.py", line 3121, in schemas_access_for_csv_upload superset_app | schemas_allowed = database.get_schema_access_for_csv_upload() superset_app | File "/app/superset/models/core.py", line 675, in get_schema_access_for_csv_upload superset_app | allowed_databases += extra_allowed_databases superset_app | TypeError: can only concatenate str (not "list") to str ``` #### Screenshots  #### How to reproduce the bug 1. Enable `data upload` for the default database 2. Go to http://IP:8088/csvtodatabaseview/form ### Environment (please complete the following information): - superset version: `superset version` - python version: `python --version` - node.js version: `node -v` See https://github.com/apache/superset/blob/070f0b6cb2a1c3385bc2a7ed2448aa7eb1251666/docker-compose-non-dev.yml for the used versions since I ran this with docker-compose ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] 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. 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]
