9

Running the deploy command to a site just makes the Terminal blink as if it was stuck in some heavy operation.

enter image description here

And nothing would happen. I actually didn't try running with the --debug flag.

First thought is that I'm behind a company proxy. So I setup a "pure" connection and it's still not connecting. So what is the problem?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Mazze
  • 1,354
  • 4
  • 17
  • 35

2 Answers2

0

Open the firebase-debug.log file it contains the logs you may find an error in there.

logs similar to this

[debug] [2020-09-26T07:53:15.852Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2020-09-26T07:53:15.854Z] > authorizing via signed-in user
[debug] [2020-09-26T07:53:15.855Z] [iam] checking project testproject for permissions ["firebase.projects.get","firebasehosting.sites.update"]
[debug] [2020-09-26T07:53:15.861Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2020-09-26T07:53:15.861Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token  

In my case, it was due to a slow internet connection thus connection could not be established.

Genes
  • 300
  • 1
  • 3
  • 16
  • 1
    my internet connection is 30mb/s so whats here going wrong same problem – Monu Rohilla Oct 14 '20 at 04:28
  • @AnkurRohilla Open the 'firebase-debug.log' then check the logs for any errors sometimes the problem is not with the connection speed. – Genes Oct 14 '20 at 06:50
-3

Running firebase --help there should be an info popping up if there is an update available.

enter image description here

If it is you should update and then deploy again.

npm update -g firebase-tools
firebase deploy

If that isn't working, list the projects and check if you are logged in

firebase list
firebase login
Mazze
  • 1,354
  • 4
  • 17
  • 35
  • 7
    this has nothing to do with update. I'm able to git push in 2 seconds. Firebase Deploy takes like 3 minutes. What exactly is it doing? It's not as if packages need to be installed. Just push static files and that too takes forever. – KhoPhi Jan 04 '17 at 20:27