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

Emulator UI failed to connect to RTDB over 0.0.0.0 on Windows #519

Open
yuchenshi opened this issue Feb 24, 2021 · 2 comments
Open

Emulator UI failed to connect to RTDB over 0.0.0.0 on Windows #519

yuchenshi opened this issue Feb 24, 2021 · 2 comments

Comments

@yuchenshi
Copy link
Member

Symptoms: #464 (comment)

Environment: Windows (with Chrome and maybe other browsers), when RTDB emulator is set to listen on "host": "0.0.0.0" in firebase.json.

Root cause: firebase/firebase-tools#2870
Workaround: firebase/firebase-tools#2870 (comment)
tl;dr: Run localStorage.removeItem('firebase:previous_websocket_failure') in Developer Console on Firebase Emulator UI web page (NOT hosting emulator or anywhere in your app)

We should either bake the workaround into Emulator UI or fix the underlying issue in RTDB (cleaner but may take longer). The workaround above can be used to get it working for now.

@aameen951
Copy link

Hi,

Is there any updates on this issue? It is becoming more frequent and more annoying to delete the localStorage key. Sometimes it is confusing when it is doesn't update because I think my code is broken when it is the emulator lost the websocket connection and falling back to the http one and failing to connect.

The backed workaround would be fine for now.

Thanks

@dzylich
Copy link

dzylich commented Mar 9, 2023

I am having this issue as well, but I tried the workaround and it did not work. The issue is occurring when I launch the Sign in with Google pop-up and it tries to connect to the Auth emulator. I ran the provided command in the emulator UI developer tools console and then re-launched the sign in pop up, but it still failed to connect. I also tried completely clearing the localStorage and cache and restarting the emulator, and still it could not connect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants