Incubator-superset: There was an issue fetching the favorite status of this dashboard

Created on 6 Feb 2019  路  7Comments  路  Source: apache/incubator-superset


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

  • [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • [x] I have reproduced the issue with at least the latest released version of superset.
  • [x] 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

#bug inactive v0.29

All 7 comments

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

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

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.

Try setting ENABLE_PROXY_FIX = True in your superset_config.py, find more context here https://github.com/apache/incubator-superset/pull/1150

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;
   }
}
...

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

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 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shyam2794 picture shyam2794  路  3Comments

gbrian picture gbrian  路  3Comments

lenguyenthedat picture lenguyenthedat  路  3Comments

ylkjick532428 picture ylkjick532428  路  3Comments

deity-bram picture deity-bram  路  3Comments