Skip to content

Angular ServiceWorker interferes with Firestore's network requests ("Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds" log warning). #901

@Brahmarishi

Description

@Brahmarishi

[REQUIRED] Describe your environment

  • Operating System version: MacOS 10.13.4
  • Firebase SDK version: 5.0.4
  • Firebase Product: Firestore

[REQUIRED] Describe the problem

Firestore fails on production mode.

[2018-06-04T06:11:47.859Z] @firebase/firestore: Firestore (5.0.4): 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.

Steps to reproduce:

build project using ng build --prod and served in firebase hosting firebase deploy --only hosting

Relevant Code:

Firestore fails to start.

this.afs.collection('users').doc<User>(user.uid).valueChanges().subscribe((data) => {
    console.log(data)
};

undefined -> console.log(data)

The version used is firebase: "5.0.4" with angularfire2: "^5.0.0-rc.10"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions