Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Lost connection after exiting suspend mode.

Đang mở
#2,906 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
arch-linux, firebase, node.js

Hướng nghiên cứu

Tái hiện trường hợp suspend/resume được mô tả cho Arch Linux, pm2, Node.js 22.11.0, Firebase SDK 13.22.0 và lệnh gọi realtime database của firebase-admin tại firebase.database().ref('data').once(...). Bắt đầu bằng cách theo dõi vòng đời của kết nối realtime database trong quá trình suspend và resume; được xem là hoàn tất khi request hoàn thành hoặc báo lỗi sau resume mà không khởi động lại ứng dụng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
1.7k
Fork
419
Merge trung bình
4 ngày 20 giờ
Pull request đã merge (30 ngày)
16

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của firebase/firebase-admin-node

Tất cả issue của firebase/firebase-admin-node

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.