-
Notifications
You must be signed in to change notification settings - Fork 358
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
Realtime database emulator with node 18 stalled requests #2084
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
@Hacksore - do you have the emulator running on that port? |
Yes. I was unable to reproduce the error. It logged |
@maneesht Can you confirm if you had node >=18 sourced when you ran the test? |
@Hacksore I'm on |
Can you enable logging and provide the output from the logs below? const db = admin.database();
admin.database.enableLogging(true);
... |
@maneesht thanks for the pointer to enable debug mode. Here are the logs that seem to give more insight to the issue.
And I see the client repeatedly printing this.
|
@Hacksore long shot and I didn't test this, but can you try adding the
This is based on a guess because your emulators are running on |
@lahirumaramba I think you've found the issue, good catch! If I change the env var to However, it doesn't work to set Has something changed recently that could potentially cause this? |
Glad you got it fixed! Using the IP address |
@lahirumaramba would it make sense to update the docs to reflect the usage of https://firebase.google.com/docs/emulator-suite/connect_rtdb#admin_sdks |
Hi @Hacksore, That might not be a bad idea! There is a similar PR to update a codelab here firebase/emulators-codelab#22 @christhompsongoogle @yuchenshi @egilmorez WDYT? Should we update the docs to use |
Yes I think so too |
[REQUIRED] Environment info
firebase-tools:
11.16.1
Platform: macOS/Linux
[REQUIRED] Test case
Below are the steps to repro this issue.
[REQUIRED] Steps to reproduce
node <= 16
16.x
yarn
to install dependanciesyarn start
to run the test casenode >= 18
18.x
yarn
to install dependanciesyarn start
to run the test case[REQUIRED] Expected behavior
When using nodejs >=18 the emulator should work fine when setting
FIREBASE_DATABASE_EMULATOR_HOST="localhost:9000"
[REQUIRED] Actual behavior
Stalled requests when using nodejs >= 18
The text was updated successfully, but these errors were encountered: