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.

New chart save fails

See original GitHub issue

I’m evaluating Superset using the docker-compose quickstart on Linux, cloned from Git. I am unable to create new charts. However, opening an existing chart and saving it (with or without modifications) under a new name does work.

Expected results

Saving a new chart works.

Actual results

The save modal closes silently, but reopening shows the message “Failed to save slice”. No new chart is created. A 500 error appears in the log, but no stack trace is available and the PostgreSQL container’s /var/log/postgres is empty as logging does not seem to be configured.

superset_app             | 172.20.0.1 - - [09/Jun/2020 15:05:57] "POST /superset/explore/?action=saveas&slice_name&add_to_dash=noSave&goto_dash=false HTTP/1.1" 500 -
superset_app             | INFO:werkzeug:172.20.0.1 - - [09/Jun/2020 15:05:57] "POST /superset/explore/?action=saveas&slice_name&add_to_dash=noSave&goto_dash=false HTTP/1.1" 500 -

Screenshots

1591714567

How to reproduce the bug

  1. Create a new chart from the birth names sample set (I’ve seen the problem with both tables and big number/trendlines). In the screenshot below I adjusted the time range and group by and ran the query to validate, but those don’t appear strictly necessary.
  2. Save the chart, entering a name. The modal closes but nothing else happens.
  3. Reopen the save modal to see the error message.

Checklist

  • 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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:14
  • Comments:6

github_iconTop GitHub Comments

9reactions
issue-label-bot[bot]commented, Jun 9, 2020

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.86. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

0reactions
ananthagopi9381commented, Dec 10, 2021

same this only I had another bug

when we overwrite the slice name the duplicates are created.

I want to stop this duplication.

Read more comments on GitHub >

github_iconTop Results From Across the Web

New chart save fails · Issue #10023 · apache/superset - GitHub
The save modal closes silently, but reopening shows the message "Failed to save slice". No new chart is created. A 500 error appears...
Read more >
Error when trying to save after inserting a chart template that has
Using Excel 2010 on Windows 7 Enterprise (32 bit), I have created and saved my own chart template that contains two types of...
Read more >
Issue in saving chart in Android Studio - Stack Overflow
I have solved the problem by adding a button to my layout which saves the graph when clicked. This makes sure that the...
Read more >
Failed to Save Presentation with Charts Containing ...
Currently our only workaround for this error is to not use the charts or the unsupported formular. Which defeats the point of using...
Read more >
Chart Installer - Download Fails During the Installation
Restart or reload the download. Close out of the Chart Installer completely and then launch the Chart Installer again from the desktop icon...
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