Open MorelSerge opened 2 years ago
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.
This might be a regression. I have a similar setup and this used to work- my physical device is showing old data from when it was able to connect to Firestore emulator. But now I see this same error over and over in the logs that @Vluf reports. I haven't used the physical device in a week or so. I tried another physical device, same results.
I've also verified from Safari on my mobile device that I can go http://
Simulated devices are connecting fine.
I had the following line to turn off persistence:
firestore.settings = const Settings(persistenceEnabled: false);
This was there because it says to turn off persistence with the emulator (although I admit I don't really understand why) https://firebase.google.com/docs/emulator-suite/connect_firestore. When I removed this then the real device started connecting to Firestore again.
I am seeing this same behaviour when trying to use a Flutter app using the Firebase SDK to use a local Firebase emulator for authentication. The error message I see it:
FirebaseAuthException ([firebase_auth/internal-error] An internal error has occurred, print and inspect the error details for more information.)
I can confirm its some sort of iOS device specific issue because the exact same app running on an Android device on the very same local wifi network can connect just fine. Likewise the iOS simulator can also connect to the Firebase Emulator without any issues. I also do not think its an issue with permissions as when I first run the app on the iphone, I get the dialog prompt to allow the app to "access services on the local network" which I do allow. If I don't allow via the local network access dialog I get a different error:
FirebaseAuthException ([firebase_auth/network-request-failed] Network error (such as timeout, interrupted connection or unreachable host) has occurred.)
so I don't again I don't think that's the cause of the issue here and I'm at a loss as to why this is not working.
EDIT: Sorry I submitted this without including version details: using Flutter 3.13.5, firebase_core: ^2.15.1, firebase_auth: ^4.7.2, Firebase emulator: 12.5.4 (running on Linux or MacOS host) with the app running on a iphoneSE 2022 iOS 16.6
follow up, I'm seeing this issue in my app too. It's happening in Firestore for me, iOS device (physical device), and Firestore server. I do not use any emulator.
[FirebaseFirestore][I-FST000001] WriteStream (13dd32ad8) Stream error: 'Unknown: An internal error has occurred, print and inspect the error details for more information.'
Any updates or solutions on this issue? I am also experiencing it
[REQUIRED] Environment info
firebase-tools: 10.1.5
Platform: MacOS Monterey 12.1 M1, iPhone 8 iOS 15.1
[REQUIRED] Test case
See below
[REQUIRED] Steps to reproduce
0.0.0.0
)[REQUIRED] Expected behavior
My real iOS device to find my local emulator on my laptop
[REQUIRED] Actual behavior
Flutter Firebase throwing errors