angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.64k stars 2.2k forks source link

Could not reach Cloud Firestore backend with Angular Universal and Firebase Functions #1985

Closed maciejtreder closed 3 years ago

maciejtreder commented 5 years ago

Version info

Angular: ^6.1.10

Firebase: 5.7.2

AngularFire: 5.1.1

Other (e.g. Ionic/Cordova, Node, browser, operating system): NodeJS (Angular Universal)

How to reproduce these conditions

Steps to set up and reproduce

I am trying to perform a simple request to the Firestore on the server-side (runned on Firebase with 'firebase serve'):

this.afs.doc<any>('myData').valueChanges().subscribe(resp => console.log(resp));

Debug output

Errors in the JavaScript console

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. 
nadhir-falta commented 5 years ago

Getting the same issue when running universal locally too

lwolteri commented 5 years ago

On Ionic 4 it works fine. Getting the same issue when running cordova on iOS. Version 8.1.2.

hesmondjeet commented 5 years ago

Any updates with regards to this issue? Anyone got it to work?

jamesdaniels commented 3 years ago

Outdated.