Repository navigation
Replies: 1 comment
|
The timeout and the Firestore error might be related, but I'd troubleshoot them separately before assuming they have the same cause. Since you're migrating between Firebase projects, I'd start by checking whether the CLI is resolving the correct project and whether the generated Flutter configuration matches it. 1. Verify the active Firebase projectRun: firebase projects:list
firebase use
firebase --version
flutterfire --versionThen try specifying the project explicitly: flutterfire configure \
--project=YOUR_FIREBASE_PROJECT_IDReplace This removes one possible source of confusion when multiple Firebase projects are involved. 2. Run the configuration with verbose loggingflutterfire configure \
--project=YOUR_FIREBASE_PROJECT_ID \
--verboseThe important part is identifying which operation times out. For example:
A timeout alone doesn't tell us which of these is responsible. 3. Check the generated Firebase optionsSince you've migrated from another Firebase project, inspect: Verify that the generated options refer to the intended project. In Flutter, initialization should use the generated options: Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
runApp(const MyApp());
}Make sure the required Firebase imports are present. 4. Verify Firestore independentlyOnce configuration succeeds, test a simple Firestore read. try {
final snapshot = await FirebaseFirestore.instance
.collection('test')
.limit(1)
.get(const GetOptions(source: Source.server));
debugPrint('Documents: ${snapshot.docs.length}');
} on FirebaseException catch (e) {
debugPrint('Firebase error: ${e.code}');
debugPrint('Message: ${e.message}');
}This explicitly requests data from the server rather than relying on cached results. Also verify that Firestore is enabled in the correct Firebase project. 5. Check the environmentIf the timeout continues:
A couple of questions
The verbose output around the timeout should help identify the next step. |
Uh oh!
There was an error while loading. Please reload this page.
Describe your environment
Operating System version: MacOs Sequoia 15.0.1
Browser version: Google chrome 129.0.6668.90
Firebase SDK version: 10.14.1
Firebase Product: flutterfire, firestore
Flutter version: 3.24.3 for web
Firebase-cli version: 13.22.0(problem also persists with 13.7.0)
Describe the problem
So I'm having an issue with flutterfire configuring my app to work with its respective prod firebase project.
I merged the codebase that was tied to another firebase project into a new branch to commence the move to prod.
I then created a firestore DB with the tables I needed in the new project, pointed my local gcloud and firebase cli project configs to the prod project and ran the 'flutterfire configure' command.
It runs for a while and then gives me this error: "TimeoutException after 0:00:15.000000: Future not completed" every time I try to overwrite at least one of the files and completely hangs when I don't try to overwrite firebase.json. Also my my app isn't connecting to firestore and is giving me this error: ' [cloud_firestore/unavailable] Failed to get document because the client is offline.', but I'm pretty sure that the issue is related to this configuration issue
So far, I've tried
I would greatly appreciate any assistance I can get on this issue. Thanks in advance!
All reactions