Closed Buddhilive closed 3 years ago
The error message says: Please run firebase login --reauth
. Did you try that? If so, what happened?
The error message says:
Please run firebase login --reauth
. Did you try that? If so, what happened?
Yes. I did that. Reauth works successfully. But when I tried to initialize the project, at the stage where it fetches my existing projects, I get this error. I have another project which I deployed few months back. I tried to re-deploy it to check whether it works. At that moment also I got similar error.
@Buddhilive hmmm I'm not sure what's going on but maybe you can try an alternate authentication method: https://github.com/firebase/firebase-tools#authentication
For example maybe try running firebase logout
and then gcloud auth application-default login
and see if you can use the Firebase CLI then?
@Buddhilive hmmm I'm not sure what's going on but maybe you can try an alternate authentication method: https://github.com/firebase/firebase-tools#authentication
For example maybe try running
firebase logout
and thengcloud auth application-default login
and see if you can use the Firebase CLI then?
Yeah, seems like the issue is with my Kaspersky Endpoint Security software. It's blocking some servers like NPM registry too. So I suspect it is doing the same for google auth servers. Can't say exactly. I have no control over it since it's installed and managed by our organization. I report this to System Admins. For the time being, I implemented GitHub actions to deploy my project to Firebase.
I'm having the same issue. I'm running this from my own mac so I don't believe the issue is related to other software. Also authentication work fine with Firestore commands. So something else is causing this.
Any ideas?
I'm also facing the same issue. Please find the debug log below.
=== Project Setup [info] [info] First, let's associate this project directory with a Firebase project. [info] You can create multiple project aliases by running firebase use --add, [info] but for now we'll just set up a default project. [info] [debug] [2021-01-25T08:48:03.977Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects pageSize=100 [debug] [2021-01-25T08:48:04.155Z] Failed to make request to https://firebase.googleapis.com/v1beta1/projects?pageSize=100 [debug] [2021-01-25T08:48:04.464Z] FirebaseError: Failed to make request to https://firebase.googleapis.com/v1beta1/projects?pageSize=100 at Client.doRequest (/usr/local/lib/node_modules/firebase-tools/lib/apiv2.js:194:19) at processTicksAndRejections (internal/process/task_queues.js:94:5) [error] [error] Error: Failed to list Firebase projects. See firebase-debug.log for more info.
@rajkumarboddu I solved this by simply adding the token generated with the firebase login command to the following environment variable: FIREBASE_TOKEN
If you are having further issues listing projects, please open a new bug and follow the template. Thanks!
I'm going to use AngularFire in my Angular App and host it on Firebase.
Firebase CLI keep throwing this error every time I try to initialize a Firebase project.
Error: Failed to list Firebase projects. See firebase-debug.log for more info.
And my firebase-debug.log file is as follows;
P.S. I tried the solution give in this Stackoverflow question But it didn't work at all.