Firestore: The service is currently unavailable. (firestore/unavailable).
Issue
After i upgraded Xcode to 10 and iOS 12.0, when I get the doc by id, I got the below error.
Error: Firestore: The service is currently unavailable. (firestore/unavailable). ExceptionsManager.js:84 code:"firestore/unavailable" domain:"FIRFirestoreErrorDomain" framesToPop:1 message:"Firestore: The service is currently unavailable. (firestore/unavailable)." userInfo:Object {NSLocalizedDescription: "Failed to get document because the client is offliβ¦"} NSLocalizedDescription:"Failed to get document because the client is offline."
Environment
- Application Target Platform:
iOS 12.0
- Development Operating System:
macOS Sierra
- Build Tools:
Xcode 10
React Nativeversion:
0.56.0
React Native FirebaseVersion:
4.3.8
FirebaseModule:
firestore
- Are you using
typescript?
no
Loving react-native-firebase? Please consider supporting them with any of the below:
- π Back financially via Open Collective
- π Follow
React Native FirebaseandInvertaseon Twitter - π Star this repo on GitHub βοΈ
Hey @cattuan, would you mind sharing how did you solve this one? I am probably experiencing the same issue.
Same here
@gusoskar It started working on it's own after a while. Firestore was down apparently, but nothing was mentioned anywhere πI don't think that this is the package issue.
@Olovorr @gusoskar Are you using the custom token to sign to Firebase Auth?
If is that, you try change firebase.auth().signInWithCustomToken() to firebase.auth().signInAnonymously().
It worked for me!
@cattuan my app is using email/password authentication and i am still getting this error. any idea?
I'm facing the same issue on my App in production now and then.
Non-fatal Exception: UnhandledPromiseRejection [firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff. <unknown>
Would be great to find a workaround soon.