Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase deploy functions - HTTP Error 403

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?

like image 261
Pieter Avatar asked Dec 23 '22 22:12

Pieter


1 Answers

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]
like image 129
Marcio Avatar answered Feb 01 '23 02:02

Marcio