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 error fetching the favorite status: NetworkError when attempting to fetch resource. #14730

Closed
3 tasks done
Kamakshi12 opened this issue May 20, 2021 · 4 comments
Closed
3 tasks done
Labels
inactive Inactive for >= 30 days install:config Installation - Configuration settings

Comments

@Kamakshi12
Copy link

Kamakshi12 commented May 20, 2021

There was an error fetching the favorite status: NetworkError when attempting to fetch resource (or) There was an error fetching the favorite status: Failed to fetch

Expected results

Pop up (the black message attached in the screenshots) shouldn't occur

Actual results

The above mentioned error occurs.

Screenshots

image
image

How to reproduce the bug

Any of the following gives the error:

  1. Login to the superset account
  2. Navigate between other tabs like 'Charts' or 'Data' and then click back on 'Dashboard' tab.

P.S.: The error is seen only in the landing page after entering the credentials (home page) and 'Dashboards' list page. Upon every refresh of the page, the error occurs again.

Environment

(please complete the following information):

  • superset version: 1.1.0
  • python version: 3.7.9
  • node.js version: v14.16.1

Checklist

Make sure to follow these steps 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.

Additional context

Have referred to similar issues reported before #6824 , #8121, #13746. They all seem to be pointing out to almost the same solution of changing ENABLE_PROXY_FIX=True in the superset config.py file and doing a superset init command, both of which I tried and it didn't work. More details - I am running the Superset on a Linux ec2 machine.

@Kamakshi12 Kamakshi12 added the #bug Bug report label May 20, 2021
@dpgaspar dpgaspar added install:config Installation - Configuration settings and removed #bug Bug report labels May 20, 2021
@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.

@connorwang
Copy link

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.

We're having the similar issue here #16050. May I ask where did you add the ENV varaible exactly?

Thanks

@stale
Copy link

stale bot commented Apr 30, 2022

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 30, 2022
@geido
Copy link
Member

geido commented Jan 30, 2024

Closing this as stale. If you encounter this issue in any recent version (currently 3.x) please open a new Issue or a PR to address the problem. Thanks @Kamakshi12!

@geido geido closed this as completed Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days install:config Installation - Configuration settings
Projects
None yet
Development

No branches or pull requests

5 participants