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

There was an issue fetching the favorite status of this dashboard #6824

Closed
3 tasks done
AndreNalevaiko opened this issue Feb 6, 2019 · 8 comments
Closed
3 tasks done
Labels
!deprecated-label:bug Deprecated label - Use #bug instead inactive Inactive for >= 30 days v0.29

Comments

@AndreNalevaiko
Copy link

AndreNalevaiko commented Feb 6, 2019

Make sure these boxes are checked before submitting your issue - thank you!

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

Superset version

0.29.0rc7

Expected results

Nenhum notificação de problemas

Actual results

A notification with the following message

There was an issue fetching the favorite status of this dashboard.

Notification
image
Log javascript
image

Steps to reproduce

Open a dashborad

@kristw kristw added !deprecated-label:bug Deprecated label - Use #bug instead v0.29 labels Feb 7, 2019
@Neuliaus
Copy link

we are having the same problem really weirdly, we thought it was because the CORS was disable on Superset Config, but after we enable it and re-deploy we still have the same problem.

Because we are resolving other issues with removing the SQLite and replacing it with PSSQL on RDS , I dont know if they may be related or adding to it , or none of them .

But maybe you should try enable the CORS in superset config and maybe it works for you

@graceguo-supercat
Copy link

modern browser doesn't like to mix https ajax in a http requested page. Can you set page dash.gorillascode.com with https request?

@stale
Copy link

stale bot commented Apr 21, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 21, 2019
@mistercrunch
Copy link
Member

Try setting ENABLE_PROXY_FIX = True in your superset_config.py, find more context here #1150

@mikalai-dev
Copy link

We are using nginx as a reverse proxy for superset and faced with this issue. Superset is running in docker container and nginx is on the host system.
Following lines in nginx config solved this issue for us:

map $http_upgrade $connection_upgrade {
  default       "upgrade";
  ""            "";
}
 server {
 server_name superset.example.org
 listen 443 ssl;
 location /  {        
           proxy_set_header   Connection $connection_upgrade;
           proxy_set_header   Upgrade $http_upgrade;
           proxy_set_header   Host $host;
           proxy_set_header   X-Real-IP $remote_addr;
           proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
           proxy_set_header   X-Forwarded-Proto $scheme;
   }
}
...

@arthurpduarte
Copy link
Contributor

arthurpduarte commented Aug 7, 2019

There is a quick fix to this; the front-end is calling the wrong API and getting redirected with the wrong protocol if you are using HTTPS. The fix is adding a trailing '/' to the call. I created a PR for it, but I am not allowed to push the branch

@arthurpduarte
Copy link
Contributor

There is a quick fix to this; the front-end is calling the wrong API and getting redirected with the wrong protocol if you are using HTTPS. The fix is adding a trailing '/' to the call. I created a PR for it, but I am not allowed to push the branch

Reading up on how to submit a fix :)

arthurpduarte pushed a commit to arthurpduarte/incubator-superset that referenced this issue Aug 8, 2019
…apache#6824

Issue: When Superset is running behind a reverse proxy and the dashboard page is requested with HTTPS protocol, the frontend can't retrieve the favorite status of the dashboard and, instead, displays the following toast message: 'There was an issue fetching the favorite status of this dashboard.'

Cause: While the API exposes the /favestar/Dashboard/{id}/count/ endpoint, the frontend executes an API call to /favestar/Dashboard/{id}/count, which leads to a redirect to an endpoint with HTTP protocol

Fix: Call the correct endpoint
mistercrunch pushed a commit that referenced this issue Aug 9, 2019
…#6824 (#8013)

Issue: When Superset is running behind a reverse proxy and the dashboard page is requested with HTTPS protocol, the frontend can't retrieve the favorite status of the dashboard and, instead, displays the following toast message: 'There was an issue fetching the favorite status of this dashboard.'

Cause: While the API exposes the /favestar/Dashboard/{id}/count/ endpoint, the frontend executes an API call to /favestar/Dashboard/{id}/count, which leads to a redirect to an endpoint with HTTP protocol

Fix: Call the correct endpoint
@dequn
Copy link

dequn commented Jul 19, 2021

set ENV FORWARDED_ALLOW_IPS=* when starting gunicorn will solve it.
This issue is caused by lacking of trailing slash of favorite_status endpoint, and flask will append "/" and respond a redirection. But if flask can not detect it's under https scheme, you will get a http scheme location, then caused the error.

cccs-rc pushed a commit to CybercentreCanada/superset that referenced this issue Mar 6, 2024
…apache#6824 (apache#8013)

Issue: When Superset is running behind a reverse proxy and the dashboard page is requested with HTTPS protocol, the frontend can't retrieve the favorite status of the dashboard and, instead, displays the following toast message: 'There was an issue fetching the favorite status of this dashboard.'

Cause: While the API exposes the /favestar/Dashboard/{id}/count/ endpoint, the frontend executes an API call to /favestar/Dashboard/{id}/count, which leads to a redirect to an endpoint with HTTP protocol

Fix: Call the correct endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead inactive Inactive for >= 30 days v0.29
Projects
None yet
Development

No branches or pull requests

8 participants