Prashan Saranga
Prashan Saranga

Reputation: 31

Firebase - flutterfire configure not working (Timeout Exception)

I am working on connecting my new Flutter project with Firebase. I have successfully executed the 'firebase login' and 'dart pub global activate flutterfire_cli' commands. However, I am facing an issue while running the 'flutterfire configure' command. It keeps showing a timeout exception every time I try to run it. I need some help to resolve this error.

This is what it shows after running flutterfire configure

TimeoutException after 0:00:15.000000: Future not completed

I have already tried firebase logout, firebase login to relogin and also tried firebase login --reauth commands as well. And also a deferent internet connection too.

Furthermore, this is not my first flutter app to try Firebase. I already had two Flutter projects connected to Firebase (I have deleted one to confirm that there is no limitation issue), and broth worked really well. This is my third app to try.

Upvotes: 2

Views: 2099

Answers (5)

I encountered the same issue on Windows 11 and resolved it with the following steps:

  1. Created a new Firebase App to avoid potential configuration corruption.

  2. Restarted the computer.

  3. Ran the following commands in PowerShell inside my Flutter App directory:

dart pub global activate flutterfire_cli
flutterfire configure --project=<project_id>

Ensure to replace <project_id> with your actual project ID.

Note: The flutterfire command only worked when executed in PowerShell. It did not function properly in the VSCode terminal. After following these steps, the issue was resolved.

Upvotes: 0

Lavair
Lavair

Reputation: 946

I had timeout issues as well and unexpectedly solved it by switching internet connection.

I know that the question states that this was tried, but I feel like I won't be the only person where this will be a viable solution.

Therefore I wanted to add this as an answer here: Try to switch your internet connection.

Upvotes: 0

Dany Fajardo
Dany Fajardo

Reputation: 1

I had exactly the same issue and installing Node.js fixed it.

Command to install Node.js on my local machine:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash

Update your terminal with source ~/.nvm/nvm.sh.

Now, you're able to install the Firebase CLI tool:

npm install -g firebase-tools

and able to run the flutterfire configure without any issue.

Hope it helps!

Upvotes: -1

Frank van Puffelen
Frank van Puffelen

Reputation: 599866

If retrieving the list of projects is failing, you can try passing the project ID on the command line with:

flutterfire configure --project <your project id>

Upvotes: 0

Zeelkumar Sojitra
Zeelkumar Sojitra

Reputation: 279

Go to your firebase project, then after click your firestore database, then after tap on rule tab and change date and time to access this database data.

      allow read, write: if request.time < timestamp.date(2024, 1, 25); // change this date according to your need.

Upvotes: 0

Related Questions