Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not add or edit database #9430

Closed
3 tasks done
meinnamehier opened this issue Apr 1, 2020 · 3 comments
Closed
3 tasks done

Can not add or edit database #9430

meinnamehier opened this issue Apr 1, 2020 · 3 comments
Labels
inactive Inactive for >= 30 days

Comments

@meinnamehier
Copy link

When I try to add or edit a database, i get the error "'NoneType' object has no attribute 'encode'" and no database is added or edited.
This happens with the demo database as well as a Snowflake database.
Clicking on "Test Connection" shows success.

Expected results

The database is added to the list of sources

Actual results

An error message is displayed: 'NoneType' object has no attribute 'encode'
There is no information on the console output, loglevel is "DEBUG"

Screenshots

Bildschirmfoto 2020-04-01 um 09 13 20

How to reproduce the bug

  1. Go to Sources -> Database
  2. Click on "Save"
  3. See error

Environment

Docker container

Host Information:

  • superset version: latest Master branch
  • python version: 3.7.7
  • node.js version: 12.8.0
  • npm version: 6.11.2

Checklist

Make sure these boxes are checked 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.
  • 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

Host OS: MacOS Mojave 10.14.6
The Snowflake connection string looks like this:
snowflake://USER:[email protected]/DATABASE/PUBLIC?warehouse=WAREHOUSE&role=PRODUCTION_USER
Snowflake-SQLalchemy is installed.

@villebro
Copy link
Member

villebro commented Apr 1, 2020

Thanks for the bug report @meinnamehier , I am able to reproduce, will post a bugfix shortly.

@ustinovam
Copy link

And i not add mysql database

@stale
Copy link

stale bot commented Jun 5, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Jun 5, 2020
@stale stale bot closed this as completed Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

3 participants