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

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

Open dgobaud opened this issue 7 years ago • 22 comments

Same issue as https://github.com/invertase/react-native-firebase/issues/1441

We get a lot of Firestore service unavailable errors we even have it retry once a second for 10 seconds doesn't go away.

Is this a React Native Firebase bug or is it Firestore itself and I need to contact Google?

using "react-native-firebase": "5.5.5",

Error: Firestore: The service is currently unavailable. (firestore/unavailable).
  at createErrorFromErrorData(/Users/vsts/agent/2.158.0/work/1/s/node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:155:36)
  at apply(/Users/vsts/agent/2.158.0/work/1/s/node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:104:31)
  at __invokeCallback(/Users/vsts/agent/2.158.0/work/1/s/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:414:13)
  at fn(/Users/vsts/agent/2.158.0/work/1/s/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:127:12)
  at __guard(/Users/vsts/agent/2.158.0/work/1/s/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:314:9)
  at value(/Users/vsts/agent/2.158.0/work/1/s/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:126:10)
  at [native code] value(:0:0)

dgobaud avatar Nov 18 '19 03:11 dgobaud

anyone? this happened a lot today. firebase support won't help they say the problem is the library

dgobaud avatar Dec 04 '19 07:12 dgobaud

I can't think of any reason why it would be us. We simply pass some data over to native land and then call the Firebase SDKs with that data. We'd really need some networking logs to really understand what's happening, but that needs to come from Firebase/Google.

Ehesp avatar Dec 04 '19 08:12 Ehesp

@Ehesp firebase is saying "For libraries leveraging the Web SDK, you may enable debug logging using this line of code:

firebase.firestore.setLogLevel("debug");

Debug logs provides access to the internal state of the SDK, so this information would be valuable to us. Note that the React Native library may expose this method using a different syntax."

does this use the web SDK...? is there another way you have to turn on logging? I can try doing it

dgobaud avatar Dec 05 '19 09:12 dgobaud

Your best bet would be checking the native logs in Studio/XCode for messages, as we can only relay errors back.

Ehesp avatar Dec 05 '19 11:12 Ehesp

ok will look - confirming firebase.firestore.setLogLevel("debug"); works?

dgobaud avatar Dec 05 '19 16:12 dgobaud

Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 02 '20 17:01 stale[bot]

it still happens a lot

dgobaud avatar Jan 02 '20 18:01 dgobaud

Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 30 '20 18:01 stale[bot]

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

stale[bot] avatar Feb 14 '20 18:02 stale[bot]

It isn't fixed

dgobaud avatar Feb 14 '20 19:02 dgobaud

This issue still happens

thegrucoder avatar Mar 16 '20 01:03 thegrucoder

@dgobaud did you solve this issue?

thegrucoder avatar Mar 16 '20 01:03 thegrucoder

no - planning to get rid of react native seems to be thing to do

dgobaud avatar Mar 16 '20 01:03 dgobaud

oh, sad to hear that

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

Anyone found a solution for this issue? I am facing this issue in flutter firestore .

findnizam avatar Oct 12 '20 19:10 findnizam

@findnizam so far it seems to have always come down to someone actually not having network (stable, and all the way through to google services in the cloud)

mikehardy avatar Oct 12 '20 20:10 mikehardy

Anyone found a solution for this issue? I am facing this issue in flutter firestore .

I solved this issue by updating google play services in Emulator.

findnizam avatar Oct 13 '20 05:10 findnizam

Still happens with "@react-native-firebase/app": "^8.4.2", "@react-native-firebase/auth": "^9.2.2", "@react-native-firebase/firestore": "^7.8.1"

brandtnewlabs avatar Nov 04 '20 10:11 brandtnewlabs

This issue still happens

ashley00101010 avatar Jan 10 '21 19:01 ashley00101010