-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expo: Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=unknown]: undefined undefined: undefined #8761
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
For whatever it's worth, i added above minimal configuration to reproduce |
Same issue here, just on android |
Hi @cristianbogdan, thank you for raising this issue. I am not very familiar with Expo Go, could you please provide a minimal reproduction app? Besides, could you please enable "debug" level logging, and check the logs? Have |
Here there´s a gist with my logs in debug mode I´m using ionic with React and capacitor. I have this issue just with Android devices (emulated or fisical), with Ios it´s working perfectly
This is the code i have running the connection with firebase. I saw in other post a similar issue and tryed solving it with I´ve tryed diferent versions of firebase but i´m currently using |
React Native and Ionic are really different environments so these are probably two separate issues and should be tracked accordingly. For the first React Native issue, what is the target user environment? Is it web? From the reference to localhost I assume it's web. If so, it's grabbing the wrong bundle as only the Node Firestore bundle uses grpc (it doesn't work in web). Is there some way you can reconfigure your metro bundler to prefer "browser" or "module" fields (or if it's resolving with ESM, the "import" or "browser" fields)? Although I do see that the file is The second issue with Ionic seems to be a different issue as I see from the logs it's using Webchannel and not grpc - I would suggest starting a new issue and providing any additional details you can. |
@P10Designs, I wonder if you are running into the same problem as this ticket, since you are using capacitor as well: #8255 (comment) |
I start
When accessing This is the log of a more complex application (with routing etc). Custom printouts are mine. I print once at the application start, and also when catching in the getDoc() promise chain. As you can see, a few more bundles are loaded after the firestore initialization fails.
The log line |
Minimal stackblitz that reproduces the issue. When loading the Stackblitz,
You can remove Alternatively, catching in the |
Operating System
macOS, several versions
Environment (if applicable)
Chrome 130-132
Firebase SDK Version
11.0.2 but tested also with 11.2 and several 9 versions
Firebase SDK Product(s)
Firestore
Project Tooling
Expo go app with metro bundler (node), React Native
Detailed Problem Description
I have a firestore getDoc() in the startup (bootstrap) code of an Expo Go (React Native) app. On startup, when the app is accessed from the browser (localhost:8081), I see the following output.
Without a catch() to the getDoc() the whole expo server stops since initial JS code throws. With a catch, Expo seems to execute again the bootstrap sequence and on the 2nd attempt to getDoc() (about one second later) resolves correctly and the app works.
Steps and code to reproduce issue
package.json
src/app/index.js
I tested on 3 different machines (all Mac), with a number of Firebase versions, from 9 to the latest 11.2.
The text was updated successfully, but these errors were encountered: