Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Failed to get Firebase project project-name. Please make sure the project exists and your account has permission to access it

I tried running firebase deploy like I have always done but came across this Error:

Error: Failed to get Firebase project project-name. Please make sure the project exists and your account has permission to access it.

I have run firebase login and I get 'Already logged in as [email protected]'

The firebase-debug.log file shows a few 401 http responses and some of them have the following text:

'Request had invalid authentication credentials' and also 'invalid token'

How can this be solved?

like image 862
uber Avatar asked Oct 05 '22 03:10

uber


Video Answer


2 Answers

For me this worked,

firebase logout

firebase login

like image 183
Akhilesh Kumar Avatar answered Oct 19 '22 16:10

Akhilesh Kumar


This worked for me:

Run

firebase use --add

And re-select the project

like image 40
user14739916 Avatar answered Oct 19 '22 17:10

user14739916