4
votes

When trying to deploy my Firebase Functions (after switching computers) I get an error and can't deploy.

Error: HTTP Error: 403, Service Usage API has not been used in project 563584335869 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/serviceusage.googleapis.com/overview?project=563584335869 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

I do not have a project with that ID and have switched between projects and it always gives me the exact same project ID. That link doesn't work for me, but when I put my project ID instead of 563584335869 then it works and the Service Usage API is enable.

Logging out and back in didn't solve the issue, neither did a firebase init.

Anybody know what could be causing this?

2
If you get confusing errors from the Firebas CLI, you should contact Firebase support directly. support.google.com/firebase/contact/supportDoug Stevenson
I'm getting this error tooAlex Rabin
I contacted Firebase support but they aim to get back to me in two working days. I'm hoping to get this resolved sooner.Pieter
Likewise, will updateAllen Wixted

2 Answers

8
votes

I think it may be related to firebase-tools 7.1.0. I back to 7.0.2 and it worked fine.

sudo npm uninstall firebase-tools

sudo npm i -g [email protected]
2
votes

firebaser here

There was indeed an issue introduced in the deployment of Cloud Functions with Firebase CLI version 7.1.0. The issue has now been fixed on our backend servers, and you should no longer encounter this issue.

If you continue to have problems, reach out to Firebase support for personalized help in troubleshooting.