-
Notifications
You must be signed in to change notification settings - Fork 2.2k
SSR mode: This operation is not supported in the environment this application is running on. "location.protocol" must be http or https and web storage must be enabled #2570
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
Comments
Can you try with |
I do encounter the exact same issue after upgraded to 6.0.3. |
@jamesdaniels Same for me - My Ionic/Capacitor app fails to load with the same error after using 6.0.3 (actually Amazingly, if I set |
Setting the |
Confirmed happening for me after updating from 6.0.0 + . Testing to see if rolling back to 6.0.0 or so fixes it. Silent updating with |
OK, can confirm upgrading to |
Getting the error in an Electron/Cordova hybrid application after upgrading. For me, the error comes from the (PS : in case it's not clear, this is not a solution, this is a complain, I need to get the currently logged in user !) (PS 2 : switching back to |
Ah! I think I know what this is, I added an await for getRedirectResult to reduce thrashing on the observable, which is probably unsupported outside of the browser. I have a work around in mind. I'll address in a patch soon. |
Cut |
@jamesdaniels I can confirm that the issue has been resolved with 6.0.4-canary.9a26fbe and Firebase v8 👍 |
Thank you, I was not able to test it out :( |
Thanks for confirming, I don't have an Ionic app handy to test in. Will cut |
@jamesdaniels Im in version 7 of angularfire. I have the same issue. The browser and server build and the ssr server starts fine. but when a page is requested. then the ssr server has an error.
so i looked into the
The log i added (see above) revealed that an error instead of a class was passed in the 3rd time. see out put below
of course all my servers and test requests are on local host... Do you know anything that can help me understand either error
|
I have the same error in a newer version of Firebase Anything helps |
Version info
Angular: 9.1
Firebase: 7.13.2
AngularFire: 6.0.0
Other (e.g. Ionic/Cordova, Node, browser, operating system): The error happens when running
ng run <project>:serve-ssr
on local OS (Mac or Windows) However it seems that auth still works. So maybe this should be a warning and not an error? We can still login and everything works fine.How to reproduce these conditions
Run Angular in SSR mode (using Nest)
Steps to set up and reproduce
I'm not really sure how to reproduce this. I believe it started appearing in our logs when we first implemented AngularFireAuth.
Debug output
** Errors in the JavaScript console **
** Output from
firebase.database().enableLogging(true);
**No output shown.
Expected behavior
Not to see the error in the log.
Actual behavior
Error in log. But nothing seems to be broken. Should this be a warning instead?
The text was updated successfully, but these errors were encountered: