Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase hosting - Unable to authorize access to project

I'm using $firebase deploy to upload my static files to my newly created firebase project, but I get the following error in the command line.

Unable to authorize access to project project-1234567890

The error message goes on to mention the Firebase CLI is only compatible with the new Firebase Console, which is what I'm using.

I've signed in earlier, so I believe I should have access to the project I've created in the console.

like image 207
Andrew Kelly Avatar asked May 23 '16 02:05

Andrew Kelly


3 Answers

Try running this after you go through your firebase init

firebase use --add

From there you can select your instance, for example: your-project-name-instance

I had the same issue, and running that command and selecting the instance allowed me to do the deploy.

like image 76
Matt Avatar answered Nov 16 '22 14:11

Matt


I solved my problem with the following steps:

  1. I removed .firebaserc.
  2. Then I again ran:

    firebase init
    
  3. Then I chose my default project.

like image 38
İbrahim Dolapci Avatar answered Nov 16 '22 12:11

İbrahim Dolapci


Type these commands:

  1. firebase login

    Login with your email that content your Firebase project

  2. `firebase use --add

    Choose the name of your project

  3. Now type: firebase deploy
like image 12
DoctorDroid Haiti Avatar answered Nov 16 '22 12:11

DoctorDroid Haiti