Open kaisermann opened 11 months ago
Hi @kaisermann, thank you for reporting this issue. I am able to reproduce the error with the provided code. I will start looking into the issue.
Hi @kaisermann, thank you for reporting this issue. I am able to reproduce the error with the provided code. I will start looking into the issue.
Any update on this issue? I see the PR was closed, not merged.
Hi @tappin-kr, that PR only solves the problem by ignoring a promises that we should have waited for, and high likely will introduce other errors. The main problem actually exists in a node library, which explains why this only happens in Node.
Internally pinged another team to debug the issue.
Operating System
MacOS Sonoma 14.1.1
Browser Version
n/a
Firebase SDK Version
10.6.0
Firebase SDK Product:
Firestore
Describe your project's tooling
The minimal repro contains only the js SDK in the latest version. Tested in node@16 @18 and @20.
Describe the problem
Calling
deleteApp
for an app initialized with both firestore/auth hangs indefinitely. I encountered this while trying to connect both to the emulator, but the issue seems to happen without calling theconnect{...}Emulator
functions.However, if some operation is called to the
firestore
instance, the app seems to be deleted as expected.Steps and code to reproduce issue
Stackblitz repro
Create a
repro.mjs
file with:Run
node repro.mjs
Deleting app...
should be logged butApp deleted
not.Comment either the
testFirestore
ortestAuth
initialization and run the file again..Both
Deleting app...
andApp deleted
should be logged.Now add an operation to firestore, i.e a
getDoc
, right before thedeleteApp
:Run the file again with both auth/firestore initialized.
Both
Deleting app...
andApp deleted
should be logged.