【发布时间】:2019-06-01 09:04:54
【问题描述】:
我正在尝试对服务器端的 Firestore 执行一个简单的请求(使用 firebase serve 运行的 Angular Universal):
constructor(private afs: AngularFirestore) {
this.afs.doc<any>('myData').valueChanges().subscribe(resp => console.log(resp));
}
我遇到了与 Firestore 的连接问题:
error: [2019-01-06T12:26:14.371Z] @firebase/firestore: Firestore (5.5.9): Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
- @angular 版本:^6.1.10
- @angular/fire 版本:^5.1.1
- firebase 版本:^5.7.2
【问题讨论】:
标签: node.js typescript firebase google-cloud-firestore angular-universal