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

Replace stack trace with error message in explorev2 #1817

Closed
wants to merge 1 commit into from

Conversation

vera-liu
Copy link
Contributor

Before:

  • when there are errors in viz.get_json, bootstrap_data is not loaded, stack trace is shown (this happens when user refreshes the page with wrong form_data)
    screen shot 2016-12-12 at 5 25 14 pm

After:

  • actual error message is shown in ChartContainer when user refresh the page with wrong form_data, and viz_type is set back to 'table'

needs-review @ascott @mistercrunch

viz_json = json.loads(viz_obj.get_json())
bootstrap_data["viz"] = viz_json
except Exception as e:
bootstrap_data["error"] = str(e)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could also send back the whole stack trace here, suggestions?

@vera-liu vera-liu changed the title cReplace stack trace with error message in explorev2 Replace stack trace with error message in explorev2 Dec 13, 2016
@mistercrunch
Copy link
Member

This one line PR here #1827 fixes the problem you are describing (stack trace). I also fixes the fact that we shouldn't send the data synchronously on the explore view load.

@vera-liu vera-liu closed this Dec 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants