You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can run cmd to deploy project locally, but it fails in CI with:
extensions: By installing an extension instance onto a Firebase project, you accept the Firebase Extensions User Terms of Service: https://firebase.google.com/terms/extensions/user
Error: HTTP Error: 403, Firebase Extensions Terms of Service Private API has not been used in project XYZ before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firebaseextensionstos-pa.googleapis.com/overview?project=XYZ then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
yes: standard output: Broken pipe
First of all, that link does not work / exist.
Second, TOS has been accepted, I run that cmd locally and accepted TOS (even though this should not be the required thing if you run CI)
Also there should be a way to do that manually if is such big of a deal.
Reacted by Nikita Miscenko, Takahashi Shotaro, Noah Mercado, Andrew Dunai, Wei-Liang Liou, Florentin Bürvenich, Saloh, KoheiKanagu and Cal Holloway
Hey @tomas-carv-com and @nikita-mishchenko , this is an odd one. This call (should be) made against the Firebase CLI consumer project, not your project. I just confirmed that it is enabled on that project, so I suspect that something strange is happening with the headers that is making this hit your project instead.
Could you check if the project number in the error message matches the project number of the project you are trying to deploy on? If it is not your project, could you share the project number? Additionally,--debug logs would be very helpful for figuring out whats happening here.
Switching from FIREBASE_TOKEN to GOOGLE_CREDENTIALS caused this error. switch to v11 work fine.
XXX is project name
YYY is project id of XXX
firebase token
2023-06-09T10:32:33.4676883Z The following extension instances will be configured:
2023-06-09T10:32:33.4677554Z ***************
2023-06-09T10:32:33.4677860Z
2023-06-09T10:32:33.4678887Z [2023-06-09T10:32:33.448Z] > 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"]
2023-06-09T10:32:33.4680294Z [2023-06-09T10:32:33.448Z] > authorizing via FIREBASE_TOKEN environment variable
2023-06-09T10:32:33.4681655Z âš Authenticating with `FIREBASE_TOKEN` is deprecated and will be removed in a future major version of `firebase-tools`. Instead, use a service account key with `GOOGLE_APPLICATION_CREDENTIALS`: https://cloud.google.com/docs/authentication/getting-started
2023-06-09T10:32:33.4682938Z [2023-06-09T10:32:33.448Z] [iam] checking project XXX for permissions ["firebase.projects.get","firebaseextensions.instances.update"]
2023-06-09T10:32:33.4684057Z [2023-06-09T10:32:33.448Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/XXX:testIamPermissions [none]
2023-06-09T10:32:33.4685343Z [2023-06-09T10:32:33.449Z] >>> [apiv2][(partial)header] POST https://cloudresourcemanager.googleapis.com/v1/projects/XXX:testIamPermissions x-goog-quota-user=projects/XXX
2023-06-09T10:32:33.4686804Z [2023-06-09T10:32:33.449Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/XXX:testIamPermissions {"permissions":["firebase.projects.get","firebaseextensions.instances.update"]}
2023-06-09T10:32:33.6147923Z [2023-06-09T10:32:33.613Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/XXX:testIamPermissions 200
2023-06-09T10:32:33.6149816Z [2023-06-09T10:32:33.614Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/XXX:testIamPermissions {"permissions":["firebase.projects.get","firebaseextensions.instances.update"]}
2023-06-09T10:32:33.6153706Z [2023-06-09T10:32:33.615Z] Checking if latest AppDeveloper TOS has been accepted by XXX...
service account
...
The following extension instances will be configured:
************************
[2023-06-09T10:04:03.144Z] > 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"]
[2023-06-09T10:04:03.144Z] [iam] checking project XXX for permissions ["firebase.projects.get","firebaseextensions.instances.update"]
[2023-06-09T10:04:03.144Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/XXX:testIamPermissions [none]
[2023-06-09T10:04:03.144Z] >>> [apiv2][(partial)header] POST https://cloudresourcemanager.googleapis.com/v1/projects/XXX:testIamPermissions x-goog-quota-user=projects/XXX
[2023-06-09T10:04:03.144Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/XXX:testIamPermissions {"permissions":["firebase.projects.get","firebaseextensions.instances.update"]}
[2023-06-09T10:04:03.208Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/XXX:testIamPermissions 200
[2023-06-09T10:04:03.208Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/XXX:testIamPermissions {"permissions":["firebase.projects.get","firebaseextensions.instances.update"]}
[2023-06-09T10:04:03.209Z] Checking if latest AppDeveloper TOS has been accepted by XXX...
i extensions: By installing an extension instance onto a Firebase project, you accept the Firebase Extensions User Terms of Service: https://firebase.google.com/terms/extensions/user
[2023-06-09T10:04:03.209Z] >>> [apiv2][query] GET https://firebaseextensionstos-pa.googleapis.com/v1/projects/XXX/appdevtos [none]
[2023-06-09T10:04:03.408Z] <<< [apiv2][status] GET https://firebaseextensionstos-pa.googleapis.com/v1/projects/XXX/appdevtos 403
[2023-06-09T10:04:03.408Z] <<< [apiv2][body] GET https://firebaseextensionstos-pa.googleapis.com/v1/projects/XXX/appdevtos {"error":{"code":403,"message":"Firebase Extensions Terms of Service Private API has not been used in project YYY before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firebaseextensionstos-pa.googleapis.com/overview?project=YYY then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.","status":"PERMISSION_DENIED","details":[{"@type":"type.googleapis.com/google.rpc.Help","links":[{"description":"Google developers console API activation","url":"https://console.developers.google.com/apis/api/firebaseextensionstos-pa.googleapis.com/overview?project=YYY"}]},{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"SERVICE_DISABLED","domain":"googleapis.com","metadata":{"service":"firebaseextensionstos-pa.googleapis.com","consumer":"projects/YYY"}}]}}
Error: HTTP Error: 403, Firebase Extensions Terms of Service Private API has not been used in project YYY before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firebaseextensionstos-pa.googleapis.com/overview?project=YYY then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
[2023-06-09T10:04:03.410Z] Error Context: {
"body": {
"error": {
"code": 403,
"message": "Firebase Extensions Terms of Service Private API has not been used in project YYY before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firebaseextensionstos-pa.googleapis.com/overview?project=YYY then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developers console API activation",
"url": "https://console.developers.google.com/apis/api/firebaseextensionstos-pa.googleapis.com/overview?project=YYY"
}
]
},
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "SERVICE_DISABLED",
"domain": "googleapis.com",
"metadata": {
"service": "firebaseextensionstos-pa.googleapis.com",
"consumer": "projects/YYY"
}
}
]
}
},
"response": {
"statusCode": 403
}
}
error Command failed with exit code 1.
Interesting that I can deploy on my local machine but not on github actions. I suspect that versions might be different and hence I can get it to work on my local.
I'm using FIREBASE_VERSION=12.4.0
also checked the project number @joehan looks like it's the correct project that I'm trying to deploy to
Activity
nikita-mishchenko commentedon May 25, 2023
Are there any updates on this? This is a blocker for updating firebase-tools to version 12+.
Problem was introduced in version 12.0.0 and still there.
joehan commentedon May 30, 2023
Hey @tomas-carv-com and @nikita-mishchenko , this is an odd one. This call (should be) made against the Firebase CLI consumer project, not your project. I just confirmed that it is enabled on that project, so I suspect that something strange is happening with the headers that is making this hit your project instead.
Could you check if the project number in the error message matches the project number of the project you are trying to deploy on? If it is not your project, could you share the project number? Additionally,
--debuglogs would be very helpful for figuring out whats happening here.takahashi-shotaro-al commentedon Jun 9, 2023
Switching from FIREBASE_TOKEN to GOOGLE_CREDENTIALS caused this error. switch to v11 work fine.
XXX is project name
YYY is project id of XXX
firebase token
service account
itsmasabdi commentedon Jun 25, 2023
Having the same issue. Any updates on this?
Interesting that I can deploy on my local machine but not on github actions. I suspect that versions might be different and hence I can get it to work on my local.
I'm using FIREBASE_VERSION=12.4.0
also checked the project number @joehan looks like it's the correct project that I'm trying to deploy to
CalHoll commentedon Jul 7, 2023
Hit this issue with GH Actions - url broken? Haven't tried v11 revert, is this confirmed to work?
joehan commentedon Jul 11, 2023
Duplicate of #6060 - will prioritize a fix for this.