Skip to content

Lost connection after exiting suspend mode. #2906

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

Open
fourclever opened this issue Apr 26, 2025 · 0 comments
Open

Lost connection after exiting suspend mode. #2906

fourclever opened this issue Apr 26, 2025 · 0 comments

Comments

@fourclever
Copy link

fourclever commented Apr 26, 2025

  • 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.

@fourclever fourclever changed the title Lost connection after exiting sleep mode. Lost connection after exiting suspend mode. Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants