-
Notifications
You must be signed in to change notification settings - Fork 928
When use the realtime database in Deno, it never finishes running #5783
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
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @ayame113, thanks for the report. I was able to reproduce the behavior. Let me check what we can do for this issue or bring someone here that can provide more context about it. I’ll update this thread if I have any information to share. |
@ayame113 - we use I have an experimental PR created that uses Deno's |
Also, thank you for spending the time to root cause this issue. You made this very easy to debug and test. |
@ayame113 - I have another PR incoming to allow you to use Deno with local node module dependencies, if you choose. But this issue has been resolved. |
nice!! |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Steps to reproduce:
Running the following code with
deno run -A --location http://foo.com test.ts
will hang forever after thefinish
is outputted, even though I'm callingdeleteApp
.I changed it to log the setTimeout call using the following code and found that setTimeout called the
reportStats_
method forever.The reason for this may be that the implementation of setTimeout in Deno is web compatible and there is no unref method.
We probably need to stop using the
unref
method and callcrearTimeout()
whendeleteApp()
is called.firebase-js-sdk/packages/database/src/core/util/util.ts
Lines 620 to 625 in cdada6c
The text was updated successfully, but these errors were encountered: