Description
[REQUIRED] Describe your environment
- Operating System version: MacOS Big Sur 11.3.1
- Browser version: Chrome, Firefox
- Firebase SDK version: 9.0.0-beta.3
- Firebase Product: firestore
Starting in beta.3, Firestore get()
has a timeout error:
@firebase/firestore: Firestore (9.0.0-beta.3): 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.
Sample code to reproduce (this is compat, but using standard exp functions has the same result):
import firebase from "firebase/compat/app";
import "firebase/compat/firestore";
async function main() {
const app = firebase.initializeApp({ ... });
const firestore = firebase.firestore();
const response = await firestore.collection("testCollection").doc("trueDoc").get();
console.log(response.data());
}
Firestore logs:
https://paste.googleplex.com/5208332383027200
This doesn't happen in beta.2. It may have been caused by replacing XHR with fetch in #4939.