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
Comments
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. |
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. |
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: Here is the 500 result I see when I request the shareable URL: |
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? |
Does any of the widgets on this dashboard use a parameter? |
@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. |
See the discussion here: getredash#1909, I think it will help you understand the issue. |
And also: getredash#1194. |
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. |
This is exactly the issue described in getredash#1194. |
PR #200 |
Verified in FF55(Win7) in STMO-stage I can still reproduce this issue.
Example of a dashboard which has this problem: https://pipeline-sql.stage.mozaws.net/dashboard/001dashboard Reopening the issue. |
@madalincm This dashboard on staging: https://pipeline-sql.stage.mozaws.net/dashboard/alison-test-for-166-dashboard-public-500 works fine at this public URL: https://pipeline-sql.stage.mozaws.net/public/dashboards/Yt0nPgg1b0ioAySc5q0a9RV5jIZG56RHWBSzm5sp?org_slug=default I think you may have found a separate issue. |
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 |
Issue Summary
Attempting to request the publicly shareable URL of a dashboard results in the server returning a 500 status code.
Steps to Reproduce
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:
The text was updated successfully, but these errors were encountered: