-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Fatal error when creating a chart from a saved_query via API call #29697
Comments
Hello, @imtiaznizami! I'm here to help you with any bugs, questions, or contributions you have for the repository. Let me know how I can assist you! To resolve the fatal error when trying to create a chart from a Here is the relevant change from the pull request: - [#27644](https://github.com/apache/superset/pull/27644) fix: Provide more inclusive error handling for saved queries (@john-bodley) Ensure that your Superset instance includes this fix by updating to the latest version that includes this pull request or manually applying the changes from the pull request to your local instance [1]. Steps to Update Superset to Include the Fix
By following these steps, you will update Superset to version 4.0.0, which includes the fix from pull request #27644 [1]. |
@dosu As mentioned in my original post, I am using 4.0.2 which is more recent than 4.0.0 suggested by you. Also, the issue you referenced has 4.0.2 label as well. |
To resolve the fatal error when trying to create a chart from a Here is the modified curl command for creating the chart: curl --location 'http://localhost:8088/api/v1/chart/' \
--header 'Authorization: Bearer eyJ...' \
--header 'X-CSRFToken: ImQ...' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Cookie: .eJ...' \
--data '{
"datasource_id": 11,
"datasource_type": "table",
"slice_name": "some_name",
"viz_type": "table"
}' This should help you create the chart successfully. |
@dosu However, I tried your suggestion, and the chart was created with an entirely different set of columns (which compliments what I wrote above). |
To resolve the issue of creating a chart from a Here are the steps to modify the backend to support
By making these changes, you should be able to create charts from |
@dosu |
Bug description
This is a repeat of #23189. I am unable to create a chart using
saved_query
following the superset API. It responds withFatal error
instead. (superset version 4.0.2 using docker compose)How to reproduce the bug
2
and a table namedcar
)This gives back
This gives back
Expected results
Curl command to complete successfully with the creation of the chart from the saved query.
Actual results
Curl result is
{"message" : "Fatal error"}
superset app stacktrace:
Also note that in #23189 the answer by ShaliniIruvuru (answer) mentions
query
instead ofsaved_query
in the chart creation JSON (which should be a different object).Screenshots/recordings
No response
Superset version
4.0.2
Python version
I don't know
Node version
I don't know
Browser
Chrome
Additional context
Used the following command to create superset container:
Checklist
The text was updated successfully, but these errors were encountered: