question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An error occurred while fetching databases: {"allow_cvas":["Field may not be null."]}

See original GitHub issue

After migrating to 1.2.0-rc1, editing Databases configuration rasies this error

Migration path was : 0.38 -> 1.1.0 -> 1.2.0-rc1

I’m not sure if it was working in 1.1.0, and it’s pretty hard to reproduce the situation.

An error occurred while fetching databases: {"allow_cvas":["Field may not be null."]}

For instance when unticking or ticking “allow data upload”, which has nothing to do with CVAS

Expected results

No error raised, databse configuration updated

Actual results

Configuration unchanged, aforementioned “Toast” error appears when saving

Screenshots

Two examples : click edit on an existing DB, go in this tab and click ‘save’ button :

image

image

How to reproduce the bug

  1. Go to ‘Databases’
  2. Click on ‘Edit’ then “Advanced”
  3. Scroll down and click ‘Save’
  4. See error

Environment

Running in docker

  • superset version: superset version
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Superset 1.2.0
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  • python version: python --version
Python 3.7.9
  • node.js version: node -v -> no node in runtime PATH, node 14 used in docker build process

Checklist

Make sure to follow these steps 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

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
squaloucommented, May 25, 2021

Possible workaround

In configuration / SQL Lab :

  • tick “Allow CREATE VIEW AS”
  • fill in an existing schema
  • SAVE
  • then remove the schema, untick
  • SAVE again

I suspect it’s a migration issue somewhere, a missing field for some reason.

1reaction
eschuthocommented, May 25, 2021

Thanks @junlincc. cc @yousoph. Do you think this is a large enough bug to block the 1.2 release? We plan to do a bug bash tomorrow, so we’ll fit this in.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot edit DBs ("An error occurred while fetching databases")
Getting this error when attempting to edit a DB: "An error occurred while fetching databases: Fatal error" Similar to this issue, ...
Read more >
[GitHub] [superset] squalou opened a new issue #14809
[GitHub] [superset] squalou opened a new issue #14809: An error occurred while fetching databases: {"allow_cvas":["Field may not be null."]}.
Read more >
Apache superset: cannot read metadata from Athena
On SQL editor while loading the metadata it returns following error: ERROR OCCURRED WHILE FETCHING TABLE METADATA. On Athena, it runs the ...
Read more >
Issue Code Reference - Apache Superset
This page lists issue codes that may be displayed in Superset and ... The hostname provided when adding a new database is invalid...
Read more >
TF255407: An error occurred while attempting to validate the ...
While migrating data from one TFS 2012 Server to another to another 2012 server ... This method or property cannot be called on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found