-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Firefox Error while fetching Database list #7364
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Faced the same issue. Works fine in Chrome but I get error in Firefox |
Same issue with Edge and Firefox. I've identified the following problems:
For all of these errors do appear in the console, but I haven't been able to determine if they are related to the above issues. |
+1 |
Same here. Console says:
with a stack apparently pointing to a call to a.a.configure({protocol:window.location&&window.location.protocol||"",host:window.location&&window.location.host||"",csrfToken:O}).init().catch(function(e){console.warn("Error initializing SupersetClient",e)}) The request for the CSRF token never gets sent. The site is on http (no TLS), but in chrome requests do actually get sent to http anyway, so I cannot see how it could be mixed content problem. I cannot really spot what's going wrong there; a hand-crafted copy of the request that should be used there executes just fine within the context of the page: fetch(`http://myserver/superset/csrf_token/`, {
method: 'GET',
mode: 'same-origin',
headers: { 'X-CSRFToken': '0' },
credentials: 'same-origin',
cache:'default',
redirect: 'follow',
body: undefined,
signal: undefined,
})
.then(res => console.log(res))
.catch(e => console.error('ERROR',e)); Am I missing anything there? |
OK, so the problem is not fetch, but it is HTTP indeed: callApi in @superset-ui/connection will try to find an existing version of the data in the cache if the
At that point, the CacheStorage API throws and the request for the CSRF token as well as the real request are never made. I believe the correct solution to this problem would probably be to change the constant export const CACHE_AVAILABLE = 'caches' in self && (self.location && self.location.protocol) === 'https:'; I can make pull request to this respect sometime next week only as I am currently travelling, but anybody may feel free to steal the suggestion for their own pull requests. |
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 |
I wonder if it's possible to reopen this one, |
Closing this issue - the bug is not browser-specific. @squalou if you're still experiencing this problem, please open a new issue with server-side application logs related to the error. |
I get the same errors as @amravazzi when I reverse proxy superset, in firefox. Chromium displays no errors. |
Same here. nginx reverse proxy with TLS to superset docker container. Can't add databases in Firefox. |
After upgrading from version 0.29.0rc1 to 0.999.0dev.
Firefox doesn't load the welcome screen and gives errors when opening SQL Lab editor or any dashboard
"Error while fetching database list "
"Error while fetching schema list "
SQL lab queries are executed as expected
Single charts do render. but not when included in a dashboard.
Chrome and Safari work correctly
Expected results
After logging in my dashboard renders, and sql lab editor has a database and shema dropdown lists filled. No errors are displayed.
Actual results
Welcome and Dashboard screens keeps loading.
SQL Lab editor dorpdown list aren't filled. auto completion doesn't work
No errors are written to the logs
Screenshots
The welcome screen that keeps loading
Initial load of the SQL Lab editor
How to reproduce the bug
Log in
Wait until you give up
go to SQL Lab Editor
try to select a database in the dropdown
Environment
(please complete the following information):
master
/ 0.999.0dev.6.4.1
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
Additional context
Watching network trafic in the browser, it doesn't seem like firefox does any of the data requests that I am getting in Chrome.
The text was updated successfully, but these errors were encountered: