skip to Main Content

For the past hour I’ve been trying to install the Firebase Extension for Stripe Payments, and unfortunately it keeps failing to deploy the required resources. May someone might be able to help me debug this and install the extension successfully.

I’ve tried installing it via the Firebase GUI. as well as via the Firebase CLI, same errors. After attempting to re-install, the extension claims its installed, but unfortunately the functions are still flagged with the error: Function deployment failed. Try again. – And I don’t know how to manually deploy, other than deploying the entire extension via the CLI, which initially fails with the error.

Upon re-deploying, it appears successful (similar to re-installing in the GUI) but yet again, the functions required are flagged with an error in the GUI as Function deployment failed. Try...

Error:

Extensions deploy had errors:

  • create firestore-stripe-payments
    ; RESOURCE_ERROR at /deployments/firebase-ext-firestore-stripe-payments/resources/onUserDeleted: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"You may not have more than 32 total max instances in your project"}; RESOURCE_ERROR at /deployments/firebase-ext-firestore-stripe-payments/resources/createPortalLink: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"You may not have more than 32 total max instances in your project"}; RESOURCE_ERROR at /deployments/firebase-ext-firestore-stripe-payments/resources/createCustomer: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"You may not have more than 32 total max instances in your project"}; RESOURCE_ERROR at /deployments/firebase-ext-firestore-stripe-payments/resources/createCheckoutSession: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"You may not have more than 32 total max instances in your project"}; RESOURCE_ERROR at /deployments/firebase-ext-firestore-stripe-payments/resources/onCustomerDataDeleted: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"You may not have more than 32 total max instances in your project"}; RESOURCE_ERROR at /deployments/firebase-ext-firestore-stripe-payments/resources/handleWebhookEvents: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"You may not have more than 32 total max instances in your project"}

Error: Extensions deployment failed.

enter image description here

enter image description here

enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    Unfortunately I had to discover that there is an issue with Firebase at the current point in time, which means that extensions and functions deployed to europe-west-3 run into this error, but not functions deployed to us-central-1

    This happens on legacy projects as well as brand-new projects.

    Therefore, the current "Solution" to this problem, is to install the extension, with us-central-1 as the location from where the functions are executed.


  2. Firebaser here

    We’re looking into this issue now – Cloud Functions recently started enforcing a quota on max instances which may be causing this. As an immediate workaround, can you try setting maxInstances in the advanced settings dropdown to <32 instances?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search