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

Firebase Firstore Doc.Get does not let angular universal to resolve

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

Maintainer thường phản hồi trong vòng 1 ngày

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ệ
angular, firebase, node.js, typescript
Lĩnh vực
backend, databases, web-dev

Hướng nghiên cứu

Tái hiện lỗi timeout trong quá trình render phía máy chủ bằng Angular Universal, sử dụng một Cloud Function và firebase-admin Firestore, đồng thời so sánh các truy vấn collection với collection('collectionPath').doc('docId').get(). Theo dõi call stack xung quanh thao tác lấy tài liệu; vấn đề được giải quyết khi SSR trả về HTML mà không bị timeout.

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

Mô tả

needs-triage

I'm reporting for the first time so if I'm making some mistake let me know.

The thing is that I'm working on an angular app that uses angular universal and firebase as backend. When hosting, i use a cloud function to Server-Side Render the website for SEO and preview, as usual.

But, it took me 4 weeks to discover what was wrong with my code, at some point, the ssr just stopped working. The request to ssr function always times out.

Then last week I've been rewriting the WHOLE app, and testing it step by step, until i notice a bug that happens when working with angular and firebase-admin (firestore, to be more precise)

When I insert a firestore.collection('collectionPath').doc('docId').get() the ssr part of the app just stopped working. There's something inside this that holds angular to return the html response. I've been conducting lots of testing, indeed, the get request works normally.

I've followed the whole callstack and there's something that holds angular in place preventing the returning.

I make two more requests at the same time, the first was a query, taht worked perfectly. When i inserted the doc().get(), it stopped working. I'm not able to give you more details because I'm noob in this kind of thing, but if you beed any additional let me know.

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

Chuẩn bị môi trường

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.