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

Server Code 500 on Public Dashboard URL #166

Closed
jaredlockhart opened this issue Jul 26, 2017 · 15 comments
Closed

Server Code 500 on Public Dashboard URL #166

jaredlockhart opened this issue Jul 26, 2017 · 15 comments

Comments

@jaredlockhart
Copy link

Issue Summary

Attempting to request the publicly shareable URL of a dashboard results in the server returning a 500 status code.

Steps to Reproduce

  1. Request a publicly shareable dashboard url ex: https://sql.telemetry.mozilla.org/public/dashboards/iADxJYpDKPqpF2T2k72mQNFxZYLDGe8XJ6Ot8ylK?org_slug=default
  2. Receive 500

Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?

Should return 200 with a dashboard.

Technical details:

  • Redash Version: Redash 2.0.0
  • Browser/OS: Firefox Nightly 56/OSX 10.12.4
@alison985
Copy link

Hi @jaredkerim, could you please provide more information about how you find the "publicly sharable dashboard" option? The link to the original dashboard before getting a public URL would also be helpful. Thanks in advance.

@emtwo
Copy link

emtwo commented Jul 27, 2017

In any dashboard in the top right corner there is a link (third from the left in the screenshot) to create a public link.
screen shot 2017-07-27 at 1 18 24 pm

I think this issue occurs with any dashboard

@alison985
Copy link

Thanks @emtwo. @jaredkerim could you let me know the URL of the dashboard you started with to get that public URL please? I'm not able to reproduce it in production or my local with a random dashboard.

@jaredlockhart
Copy link
Author

@alison985

Here is a dashboard we generated recently:

https://sql.telemetry.mozilla.org/dashboard/activity-stream-experiment-experimenter-test-01

Here is its public shareable URL obtained using the method @emtwo explained:

https://sql.telemetry.mozilla.org/public/dashboards/iADxJYpDKPqpF2T2k72mQNFxZYLDGe8XJ6Ot8ylK?org_slug=default

Here is the 500 result I see when I request the shareable URL:

screenshot 2017-08-03 13 20 32

@alison985
Copy link

Thank you for the reproducible example @jaredkerim. This appears to happen because the last tile has a data source of "JSON URL Fetcher". When I try to reproduce with a new dashboard (i.e. https://sql.telemetry.mozilla.org/dashboard/alison-test-for-issue-166 ) the public url works fine until I add a widget with the "JSON URL Fetcher" data source.

@robotblake could you please let me know what is different between the permissions for the "JSON URL Fetcher" and the "Tiles" data sources in production?

@alison985 alison985 added this to the 8 milestone Aug 4, 2017
@alison985 alison985 self-assigned this Aug 4, 2017
@arikfr
Copy link

arikfr commented Aug 7, 2017

Does any of the widgets on this dashboard use a parameter?

@alison985
Copy link

@arikfr Yes and that was one of the first things I tested for. However, parameter or no parameter did not make a difference in reproduction of the issue.

@arikfr
Copy link

arikfr commented Aug 8, 2017

See the discussion here: getredash#1909, I think it will help you understand the issue.

@arikfr
Copy link

arikfr commented Aug 8, 2017

And also: getredash#1194.

@alison985 alison985 modified the milestones: 9, 8 Aug 9, 2017
@alison985
Copy link

Thanks Arik.

Blake found this stacktrace: https://irccloud.mozilla.com/pastebin/v62qzsmf/ and noted "If a query gets added to a dashboard page without having been run in the background it never sets the "latest_query_data_id" field" so I currently think this is a separate issue.

@arikfr
Copy link

arikfr commented Aug 9, 2017

This is exactly the issue described in getredash#1194.

alison985 added a commit to alison985/mozilla-redash that referenced this issue Aug 14, 2017
@alison985
Copy link

PR #200

@madalincm
Copy link

Verified in FF55(Win7) in STMO-stage

I can still reproduce this issue.
The simplest steps to reproduce this issue are:

  1. Create a new dashboard
  2. Add a text widget.
    -- the public link for this dashboard will generate a 500 error when accessed.

Example of a dashboard which has this problem: https://pipeline-sql.stage.mozaws.net/dashboard/001dashboard

Reopening the issue.

@alison985
Copy link

@madalincm
Copy link

I have logged a new issue where we can track the problem with dashboards that contain a text widget where the original issue is still reproducing - #220

I created other dashboards that contain visualization widgets and also tried with Alison dashboard and can't reproduce it. I will close this bug and continue the tracking of the issue with text widget dashboards in #220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

5 participants