react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

Firestore: The service is currently unavailable. (firestore/unavailable).

Open cattuan opened this issue 8 years ago β€’ 6 comments

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

  1. Application Target Platform:

iOS 12.0

  1. Development Operating System:

macOS Sierra

  1. Build Tools:

Xcode 10

  1. React Native version:

0.56.0

  1. React Native Firebase Version:

4.3.8

  1. Firebase Module:

firestore

  1. Are you using typescript?

no


Loving react-native-firebase? Please consider supporting them with any of the below:

cattuan avatar Sep 19 '18 11:09 cattuan

Hey @cattuan, would you mind sharing how did you solve this one? I am probably experiencing the same issue.

Olovorr avatar Nov 09 '18 13:11 Olovorr

Same here

gusoskar avatar Nov 29 '18 12:11 gusoskar

@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 avatar Nov 29 '18 14:11 Olovorr

@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 avatar Dec 01 '18 08:12 cattuan

@cattuan my app is using email/password authentication and i am still getting this error. any idea?

thegrucoder avatar Mar 16 '20 01:03 thegrucoder

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.

brandtnewlabs avatar May 04 '20 08:05 brandtnewlabs