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

SQL LAB- Unexpected error #30665

Open
3 tasks done
zeedevio opened this issue Oct 21, 2024 · 1 comment
Open
3 tasks done

SQL LAB- Unexpected error #30665

zeedevio opened this issue Oct 21, 2024 · 1 comment
Labels
sqllab Namespace | Anything related to the SQL Lab

Comments

@zeedevio
Copy link

zeedevio commented Oct 21, 2024

Bug description

I have an error on everything related to queries. I'm unable to open query editor.

Error is located in new query editor Action for line

    const dbIds = Object.values(databases).map(database => database.id);

Screenshots/recordings

Screenshot 2024-10-21 at 17 29 21 Screenshot 2024-10-21 at 17 29 34 Screenshot 2024-10-21 at 17 32 35 Screenshot 2024-10-21 at 17 32 46

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
@dosubot dosubot bot added the sqllab Namespace | Anything related to the SQL Lab label Oct 21, 2024
Copy link

dosubot bot commented Oct 21, 2024

I found a similar closed issue that might be relevant to the error you're encountering: SQL LAB - unexpected error. The suggested solution for this issue was to run the following commands after restarting the service:

export FLASK_APP=superset
superset db upgrade
superset init

This solution was confirmed to completely fix the issue [1].

Additionally, the "TypeError: Cannot convert undefined or null to object" error you're seeing in sqlLab.js might be related to how objects are being handled in the code. This type of error typically occurs when trying to access or manipulate properties of an undefined or null object. You might want to check the code around line 558 in sqlLab.js to ensure that all objects are properly initialized before use.

If the error persists, consider reviewing the logic that constructs objects using spread syntax, as shown in your code snippet, to ensure that all necessary properties are defined and available.

To continue talking to Dosu, mention @dosu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllab Namespace | Anything related to the SQL Lab
Projects
None yet
Development

No branches or pull requests

1 participant