-
Notifications
You must be signed in to change notification settings - Fork 985
Description
Operating System
ios 17.5.1
Browser Version
Expo
Firebase SDK Version
10.12.2
Firebase SDK Product:
Auth, Database, Firestore, Storage
Describe your project's tooling
React Native with Expo
Describe the problem
I am experiencing a persistent issue with my React Native application that uses Firebase Firestore for data storage and retrieval. The app frequently encounters errors indicating that the client is offline, even though the device has an active internet connection. This problem occurs when attempting to fetch data from Firestore, such as checking if a user is following another user or fetching posts. The errors disrupt the normal functionality of the app and prevent data from being retrieved or displayed correctly.
Here are the specific error messages encountered:
ERROR Error checking if following: [FirebaseError: Failed to get document because the client is offline.]
ERROR Error checking if following: [FirebaseError: Failed to get document because the client is offline.]
ERROR Error checking if following: [FirebaseError: Failed to get document because the client is offline.]
ERROR Error checking if following: [FirebaseError: Failed to get document because the client is offline.]
ERROR Error checking if following: [FirebaseError: Failed to get document because the client is offline.]
ERROR Error checking if following: [FirebaseError: Failed to get document because the client is offline.]
ERROR Error checking if following: [FirebaseError: Failed to get document because the client is offline.]
ERROR Error checking if following: [FirebaseError: Failed to get document because the client is offline.]
WARN [2024-05-31T01:49:52.085Z] @firebase/firestore: Firestore (10.12.2): WebChannelConnection RPC 'Write' stream 0x8ad32229 transport errored: {"defaultPrevented": false, "g": {"C": undefined, "F": null, "M": [Circular], "g": {"A": null, "Aa": 0, "B": 0, "C": null, "Ca": false, "D": "gsessionid", "Da": [Hc], "F": false, "G": 0, "H": [Object], "I": [T], "J": true, "K": "", "L": undefined, "M": false, "O": true, "P": false, "R": 0, "S": [Object], "T": -1, "Ta": 5000, "U": 52133, "Ua": false, "Va": false, "W": "https://firestore.googleapis.com/google.firestore.v1.Firestore/Write/channel", "Wa": 2, "X": false, "Xa": undefined, "Y": 0, "Ya": 1, "ba": false, "ca": undefined, "cb": 10000, "g": null, "h": [ic], "i": [Array], "ia": null, "j": [vb], "ja": undefined, "ka": null, "l": [Z], "m": null, "o": null, "pa": undefined, "qa": null, "s": null, "u": null, "v": 0, "wa": 600000, "ya": null, "za": -1}, "h": {"database": "projects/alternative-3023b/databases/(default)"}, "i": {"g": [Object], "h": 4, "src": [Circular]}, "j": {"g": [Circular]}, "l": "https://firestore.googleapis.com/google.firestore.v1.Firestore/Write/channel", "s": false, "u": true, "v": true}, "type": "c"}
WARN [2024-05-31T01:49:59.583Z] @firebase/firestore: Firestore (10.12.2): WebChannelConnection RPC 'Listen' stream 0x8ad3222a transport errored: {"defaultPrevented": false, "g": {"C": undefined, "F": null, "M": [Circular], "g": {"A": null, "Aa": 0, "B": 0, "C": null, "Ca": false, "D": "gsessionid", "Da": [Hc], "F": false, "G": 0, "H": [Object], "I": [T], "J": true, "K": "", "L": undefined, "M": false, "O": true, "P": false, "R": 0, "S": [Object], "T": -1, "Ta": 5000, "U": 33972, "Ua": false, "Va": false, "W": "https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/channelT": -1, "Ta": 50", "Wa": 2, "X": false, "Xa": undefined, "Y": 0, "Ya": 12, "ba": false, "ca": undefined, "cb": 10000, "g": null, "h": [ic], "i": [Array], "ia false, "Xa": un": null, "j": [vb], "ja": undefined, "ka": null, "l": [Z], "m": null, "o": null, "pa": undefined, "qa": null, "s": null, "u": nu "s": null, "u": null, "v": 0, "wa": 600000, "ya": null, "za": -1}, "h": {"database": "projects/alternative-3023b/databases/(default)"}, "i": {"g": [Object], "h": 4, "src": ase": "projects/ [Circular]}, "j": {"g": [Circular]}, "l": "https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/channel", "s": false, "u": true, "v": true}, "type": "c"}
These errors occur intermittently but often enough to significantly impact the user experience. The app is built using React Native and uses Firebase Firestore for backend services.
Steps and code to reproduce issue
https://gist.github.com/dconeybe/51a2cc3ea9760bd9050ccf138c15475f