Open yellowhat opened 11 months ago
I have done other tests using export GOOGLE_APPLICATION_CREDENTIALS=<path_to_json>
.
firestore-semantic-search
From fresh firebase project, first:
$ cat firebase.json
{
"extensions": {
"firestore-semantic-search": "googlecloud/firestore-semantic-search@0.1.7"
}
}
$ firebase deploy --only extensions --project "$GOOGLE_CLOUD_PROJECT"
...
✔ Deploy complete!
then:
$ cat firebase.json
{
"extensions": {
"firestore-send-email": "firebase/firestore-send-email@0.1.26",
"mailchimp-firebase-sync": "mailchimp/mailchimp-firebase-sync@0.5.2",
"firestore-semantic-search": "googlecloud/firestore-semantic-search@0.1.7"
}
}
$ firebase deploy --only extensions --project "$GOOGLE_CLOUD_PROJECT"
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
Error: HTTP Error: 403, Mobile SDK API has not been used in project 339893162765 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/mobilesdk-pa.googleapis.com/overview?project=339893162765 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
i extensions: Verifying secret params for firestore-send-email
(node:573) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(Use `node --trace-warnings ...` to show where the warning was created)
mailchimp-firebase-sync
From fresh firebase project, first:
$ cat firebase.json
{
"extensions": {
"mailchimp-firebase-sync": "mailchimp/mailchimp-firebase-sync@0.5.2"
}
}
$ firebase deploy --only extensions --project "$GOOGLE_CLOUD_PROJECT"
...
✔ Deploy complete!
then:
$ cat firebase.json
{
"extensions": {
"firestore-send-email": "firebase/firestore-send-email@0.1.26",
"mailchimp-firebase-sync": "mailchimp/mailchimp-firebase-sync@0.5.2",
"firestore-semantic-search": "googlecloud/firestore-semantic-search@0.1.7"
}
}
$ firebase deploy --only extensions --project "$GOOGLE_CLOUD_PROJECT"
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
Error: HTTP Error: 403, Mobile SDK API has not been used in project 339893162765 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/mobilesdk-pa.googleapis.com/overview?project=339893162765 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
i extensions: Verifying secret params for firestore-send-email
(node:573) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(Use `node --trace-warnings ...` to show where the warning was created)
firestore-send-email
firestore-semantic-search
From fresh firebase project, first:
$ cat firebase.json
{
"extensions": {
"firestore-send-email": "firebase/firestore-send-email@0.1.26",
"firestore-semantic-search": "googlecloud/firestore-semantic-search@0.1.7"
}
}
$ firebase deploy --only extensions --project "$GOOGLE_CLOUD_PROJECT"
...
✔ Deploy complete!
then:
$ cat firebase.json
{
"extensions": {
"firestore-send-email": "firebase/firestore-send-email@0.1.26",
"mailchimp-firebase-sync": "mailchimp/mailchimp-firebase-sync@0.5.2",
"firestore-semantic-search": "googlecloud/firestore-semantic-search@0.1.7"
}
}
$ firebase deploy --only extensions --project "$GOOGLE_CLOUD_PROJECT"
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
Error: HTTP Error: 403, Mobile SDK API has not been used in project 339893162765 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/mobilesdk-pa.googleapis.com/overview?project=339893162765 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
i extensions: Verifying secret params for firestore-send-email
(node:573) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(Use `node --trace-warnings ...` to show where the warning was created)
firestore-send-email
mailchimp-firebase-sync
From fresh firebase project, first:
$ cat firebase.json
{
"extensions": {
"firestore-send-email": "firebase/firestore-send-email@0.1.26",
"mailchimp-firebase-sync": "mailchimp/mailchimp-firebase-sync@0.5.2"
}
}
$ firebase deploy --only extensions --project "$GOOGLE_CLOUD_PROJECT"
...
✔ Deploy complete!
then:
$ cat firebase.json
{
"extensions": {
"firestore-send-email": "firebase/firestore-send-email@0.1.26",
"mailchimp-firebase-sync": "mailchimp/mailchimp-firebase-sync@0.5.2",
"firestore-semantic-search": "googlecloud/firestore-semantic-search@0.1.7"
}
}
$ firebase deploy --only extensions --project "$GOOGLE_CLOUD_PROJECT"
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
Error: HTTP Error: 403, Mobile SDK API has not been used in project 339893162765 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/mobilesdk-pa.googleapis.com/overview?project=339893162765 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
i extensions: Verifying secret params for firestore-send-email
(node:573) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(Use `node --trace-warnings ...` to show where the warning was created)
firestore-semantic-search
mailchimp-firebase-sync
From fresh firebase project, first:
$ cat firebase.json
{
"extensions": {
"firestore-semantic-search": "googlecloud/firestore-semantic-search@0.1.7",
"mailchimp-firebase-sync": "mailchimp/mailchimp-firebase-sync@0.5.2"
}
}
$ firebase deploy --only extensions --project "$GOOGLE_CLOUD_PROJECT"
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
Error: HTTP Error: 403, Mobile SDK API has not been used in project 339893162765 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/mobilesdk-pa.googleapis.com/overview?project=339893162765 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
i extensions: Verifying secret params for firestore-send-email
(node:573) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(Use `node --trace-warnings ...` to show where the warning was created)
Even if I install:
mailchimp-firebase-sync
firestore-send-mail
firestore-semantic-search
still:
$ cat firebase.json
{
"extensions": {
"firestore-send-email": "firebase/firestore-send-email@0.1.26",
"mailchimp-firebase-sync": "mailchimp/mailchimp-firebase-sync@0.5.2",
"firestore-semantic-search": "googlecloud/firestore-semantic-search@0.1.7"
}
}
$ firebase deploy --only extensions --project "$GOOGLE_CLOUD_PROJECT"
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
Error: HTTP Error: 403, Mobile SDK API has not been used in project 339893162765 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/mobilesdk-pa.googleapis.com/overview?project=339893162765 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
i extensions: Verifying secret params for firestore-send-email
(node:573) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(Use `node --trace-warnings ...` to show where the warning was created)
Hey @yellowhat, sorry to hear that you're running into this. Unfortunately, this is a known issue for now and the workaround is not authenticate via service account (consider https://firebase.google.com/docs/cli#cli-ci-systems instead). There are 2 error messages here:
1 - Error when checking App Developer TOS for xxx. This is expected if authenticated via a service account
This is actually a warning - as long as you've accepted the TOS separately, this won't be blocking.
2 - Mobile SDK API has not been used in project 339893162765 before or it is disabled.
Both of these are caused because the CLI calls a private API. Normally, this works fine - however, when authenticating via a service account, these calls are directed to the service account's project, which cannot have the private API enabled.
We've got a fix in the works to use a different API for 2 that should alleviate this issue. Once that is ready, I'll come back and verify that this issue is resolved.
Thank you very much for your reply. I will wait for your fix.
But why I can install each extension one by one and all together throw that error?
[REQUIRED] Environment info
firebase-tools: 12.5.1
Platform: Ubuntu
[REQUIRED] Test case
Hi, after adding the
googlecloud/firestore-semantic-search@0.1.6
to our extensions:we are not able to deploy extensions anymore via GitHub actions using a GCP Service Account key to authenticate:
we get the following error:
The project number matches the real project.
Additional info:
owner
role on the GCP projectGOOGLE_APPLICATION_CREDENTIALS
and runfirebase login
, now on:Running CI after the extension has been deployed leads to the same error
Any suggestions?
Thanks
[REQUIRED] Steps to reproduce
[REQUIRED] Expected behavior
Extensions deployed
[REQUIRED] Actual behavior
Error above