Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Lost connection after exiting suspend mode.

Open
#2,906 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
arch-linux, firebase, node.js

Research direction

Reproduce the suspend/resume case described for Arch Linux, pm2, Node.js 22.11.0, Firebase SDK 13.22.0, and the firebase-admin realtime database call at firebase.database().ref('data').once(...). Start by tracing the realtime database connection lifecycle across suspend and resume; done means the request completes or reports an error after resume without restarting the application.

Written by the indexing model from the issue text.

Description

api: database
  • Operating System version: Arch Linux
  • Firebase SDK version: 13.22.0
  • Firebase Product: database
  • Node.js version: 22.11.0
  • NPM version: 10.9.0

On my laptop, using pm2, the NodeJS application is running and constantly working, which periodically successfully accesses the real-time database using the firebase-admin module. However, when I put the computer into suspend mode and then turn it on again, and activate the function of accessing the database, it freezes. The console shows that the application is running, all functions are executed, except for the one that makes a request to the database. Without the content inside, it looks like this:

        firebase.database().ref('data').once('value', (s) => {
            console.log('output 1');
        }, (error) => {
            console.log('output 2');
        });

Not 1 and not even 2 output to the console do not work.
At the same time, all requests to other data sources made using fetch work. After restarting the application, the database is accessed as expected.

Dominant language
TypeScript
Stars
1.7k
Forks
419
Avg merge
4d 20h
Merged PRs (30d)
16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-node

All issues in firebase/firebase-admin-node

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.