Closed Aeen07 closed 1 year ago
Hi @Aeen07, thanks for reaching out to us. Based on the debug logs you provided, it seems like there is a request that failed due to a permission issue. Could you try running firebase login --reauth
to reauthenticate?
Also, could you try connecting to a different network or temporarily turning off any proxy or firewall you may have? This is to discard the possibility that this issue is caused by the network connection.
Lastly, are you able to run firebase projects:list
without any issues or does it also result in an error?
thank you for commenting!, I've tried running firebase login --reauth but it didnt work
I cant use firebase without a vpn because of my location (Iran)
I've also tried running firebase projects:list and its giving me the same error
thank you for commenting!, I've tried running firebase login --reauth but it didnt work
I cant use firebase without a vpn because of my location (Iran)
I've also tried running firebase projects:list and its giving me the same error
did you succeed???
thank you for commenting!, I've tried running firebase login --reauth but it didnt work
I cant use firebase without a vpn because of my location (Iran)
I've also tried running firebase projects:list and its giving me the same error
daash did you solve the problem ?
Hi all,
it looks like the transition between your old version of Firebase project and the actual implementation crash on authentication.
Or at least that is the problem that the "flutterfire configure" command was issuing when I went reading the log.
I had been going to the reauthentication process with the Firebase cli without any success or progress.
Unfortunately it looks like the old way, which for me was the use of env variable "FIREBASE_TOKEN" is no longer viable.
So this is what I had to do to make things run again:
1) Rename FIREBASE_TOKEN variable to OLD_FIREBASE_TOKEN (just to not lose the content or the reference)
2) Head to https://cloud.google.com/sdk/docs/install download and install gCloud cli (as it was suggested in the logs)
3) Follow the whole installation , checking all the marks at the end, especially "Open gCloud cli"
4) There I went through google authentication (I had to provide the email address) and it loaded all the projects I had on Firebase, I chose to have my main project as the default one (in my case it was marked with "1")
5) Upon the success of the previous step, I found that the cli generated a JSON and that it was under
C:\Users\
Hope this helped!
Hi @Aeen07, thanks for reaching out to us. Based on the debug logs you provided, it seems like there is a request that failed due to a permission issue. Could you try running
firebase login --reauth
to reauthenticate?Also, could you try connecting to a different network or temporarily turning off any proxy or firewall you may have? This is to discard the possibility that this issue is caused by the network connection.
Lastly, are you able to run
firebase projects:list
without any issues or does it also result in an error?
I re-authenticated after running: firebase login --reauth and the problem was solved. Thank you @Aeen07
My solution for Angular v17:
npm i @angular/fire (not ng add)
imports:
import { AngularFirestore } from '@angular/fire/compat/firestore';
get AngularFirestore from "compat" folder, after fire
firebase login --reauth
worked for me as well.
[REQUIRED] Environment info
firebase-tools: 12.4.0
Platform: Windows
[REQUIRED] Test case
install firebase CLI login to firebase using firebase login run firebase init hosting
[REQUIRED] Steps to reproduce
run
firebase init
inside a directory when askedAre you ready to proceed?
say yes selectHosting: Configure files for Firebase Hosting and (optionally) set up GitHub Action deploys
, press spacebar and then enter selectuse an existing project
[REQUIRED] Expected behavior
lists all projects of firebase to select from
[REQUIRED] Actual behavior
Error: Failed to list Firebase projects. See firebase-debug.log for more info.
firebase-debug.log :