-
Notifications
You must be signed in to change notification settings - Fork 958
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
HTTP Error: 503 in functions emulator adding trigger when using host 0.0.0.0 #2633
Comments
I think I have a related issue, only for the RTDB emulator. I have functions, firestore and database emulators enabled, each with host set to "0.0.0.0". Running When I remove the "host" line for the database in firebase.json, then everything works fine over localhost, but I need to be able to connect my physical device on the same network to the emulators, which doesn't work when using localhost. firebase --version: 8.13.1 |
Hmmm I am not able to reproduce this on my mac, I can get all the emulators to start on
Clicking around the Emulator UI things seem to be working normally, so I'm not sure how to reproduce the issues you're having. |
Got another report of this in #2742 so clearly something is wrong ... still don't know what. |
I think a big clue for me is
In the log ... why would it expect |
This is still happening with the latest tools release from today. Here are some more details of my setup: I'm running this on Ubuntu, but through WSL2, which might be part of the problem, since there are some networking caveats. However, every other emulator works with host set to "0.0.0.0", including the new auth emulator. |
I'm running into the same issue with the database when running in Docker and trying to map to 0.0.0.0 - all the other emulators are working as expected. @samtstern any ideas what's going on? Do you need help reproducing? |
Same issue for me. Functions and hosting emulators work when mapping to 0.0.0.0 host. But database.debug.log says...
|
My Firebase CLI runs in a docker container. Here's the Dockerfile that creates the Firebase CLI image.
|
i think we can use nginx or haproxy in docker container |
I had a similar issue (got |
same thing for me as for SeanZom, removing host 0.0.0.0 made it work on github actions. Is there any trick to set the host from command line when starting emulators? |
@warting right now there's no way to pass |
@samtstern Thanks! That will help! |
I have the same or at least similar problem, but perhaps the bug is in the Firebase Web SDK 9. By not specifying a As mentioned above, my solution was to use my local IP both when initializing the app with Web SDK and as the IMO, the Web SDK should continue to use the URL passed when it is initialized. If that is not technically possible, then Firebase Tools should continue to provide the right IP when no |
for someone like me who suddenly started to experience such problem: in my case today it was just because of network configuration – my laptop connected to a WiFi extender which I assume somehow changes network topology or something like that. I just disconnected from WiFi, started emulators using 0.0.0.0 as host for firestore (that took a bit longer initialize than usual), and then re-connected to WiFi again. 0.0.0.0 interface is required for devices in my local network to be able to connect to emulators. Hopefully this information helps. |
Hi all, thanks for your continued input to this dated thread. I'm a bit late to the party, but let me try to distill some of the issues mentioned here. 1: We've fixed an issue that prevented Emulator UI from accessing emulators listening on 2: We believe the RTDB 3: We haven't yet reproduced OP's HTTP Error: 503 issue, and we'd appreciate any help with a more self-contained repro. (I think this may also be platform/OS specific, but I may be wrong here.) If you run into any other issue not listed in 1-3, please open a new issue instead and we'll help you over there. Let's keep this issue focused on the 503 issue as described in the OP. |
Hey @Daltron. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Hey @Daltron. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @Daltron if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
[REQUIRED] Environment info
firebase-tools: 8.11.0
Platform: macOS
[REQUIRED] Test case
In my
firebase.json
, I have the following:[REQUIRED] Steps to reproduce
I then try running the emulators:
I eventually get the error message
Error: HTTP Error: 503, io exception
and then the emulators stop automatically.If I remove the host value entirely from the
firebase.json
or if I add my computer's IP address like192.168.1.58
, it will work perfectly, just not with 0.0.0.0[REQUIRED] Expected behavior
The emulators run without errors
[REQUIRED] Actual behavior
The emulators run for about 10 seconds then stop with the following error:
Error: HTTP Error: 503, io exception
The text was updated successfully, but these errors were encountered: