functions-samples icon indicating copy to clipboard operation
functions-samples copied to clipboard

Stripe Demo Deploy fails

Open NoahKauffman opened this issue 4 years ago • 1 comments

Following the steps from --- https://firebase.google.com/docs/use-cases/payments ...

Running "firebase deploy" returns the following:

i deploying firestore, functions, hosting i cloud.firestore: checking firestore.rules for compilation errors... ✔ cloud.firestore: rules file firestore.rules compiled successfully i functions: ensuring required API cloudfunctions.googleapis.com is enabled... i functions: ensuring required API cloudbuild.googleapis.com is enabled... ✔ functions: required API cloudfunctions.googleapis.com is enabled ✔ functions: required API cloudbuild.googleapis.com is enabled i functions: preparing functions directory for uploading... i functions: packaged functions (46.57 KB) for uploading i firestore: latest version of firestore.rules already up to date, skipping upload... ✔ functions: functions folder uploaded successfully i hosting[stripe-demo1]: beginning deploy... i hosting[stripe-demo1]: found 2 files in public ✔ hosting[stripe-demo1]: file upload complete ✔ firestore: released rules firestore.rules to cloud.firestore i functions: updating Node.js 12 function createStripeCustomer(us-central1)... i functions: updating Node.js 12 function addPaymentMethodDetails(us-central1)... i functions: updating Node.js 12 function createStripePayment(us-central1)... i functions: updating Node.js 12 function confirmStripePayment(us-central1)... i functions: updating Node.js 12 function cleanupUser(us-central1)... ✔ functions[createStripePayment(us-central1)]: Successful update operation. ✔ functions[confirmStripePayment(us-central1)]: Successful update operation. ✔ functions[addPaymentMethodDetails(us-central1)]: Successful update operation.

Functions deploy had errors with the following functions: createStripeCustomer(us-central1) cleanupUser(us-central1)

To try redeploying those functions, run: firebase deploy --only "functions:createStripeCustomer,functions:cleanupUser"

To continue deploying other features (such as database), run: firebase deploy --except functions

However, running the suggested fixes above does not resolve the issue.

NoahKauffman avatar May 19 '21 01:05 NoahKauffman

@NoahKauffman thanks for reporting. If you take a look at your functions logs in the Firebase console, they may have more info on what went wrong during deploy. Can you please check there, as well as retrying your deploy with the --debug flag (firebase deploy --debug) to see if either the logs or CLI debug output contain a more detailed error message?

jhuleatt avatar Jun 16 '21 13:06 jhuleatt