invertase / stripe-firebase-extensions

Repository of Firebase Extensions built by Stripe.
https://firebase.google.com/products/extensions
Apache License 2.0
433 stars 162 forks source link

'Failed to retrieve function source code' errors while installing/updating #113

Closed jaytavares closed 3 years ago

jaytavares commented 3 years ago

Bug report

Describe the bug

While attempting to upgrade the extension to 0.1.8, the upgrade process fails and leaves the extension in an unusable state. UPDATE: I've now seen the same error message while trying to install the extension (both 0.1.8 and 0.1.7 across multiple Firebase projects.)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to Extensions
  2. Click on 'Update Extension'
  3. Proceed with process...

or:

  1. Go to extensions
  2. Click install on Stripe Subscriptions extension
  3. Follow installation procedure to end

Expected behavior

An extension installation/upgrade without error, leaving a functioning extension.

Screenshots

Screen Shot 2020-12-10 at 2 17 41 PM

System information

Additional context

Initially seen while updating to v0.1.8 from v0.1.7; however, since seen while attempting first-time installation in another Firebase project.

jaytavares commented 3 years ago

Looks like this issue might be affecting all new installations of the extension... 🤔 Using the Firebase CLI tool, I tried installing another instance of the extension using v0.1.7 in an attempt to roll back; I'm seeing the same issue:

Screen Shot 2020-12-10 at 2 27 02 PM Screen Shot 2020-12-10 at 2 22 59 PM
jaytavares commented 3 years ago

hmm, I actually can't install the extension at all. Not even in a separate Firebase project. I've updated the issue title & description to reflect this.

@thorsten-stripe, this seems like a pretty big issue, are you seeing this behavior? I've reached out to Firebase support, but it might be a couple business days before I hear back.

dave-k commented 3 years ago

I have the same issue. The extension was working this morning.

ext-error

Cloud functions "Unknown function status"

ext3-error

SuneelFreimuth commented 3 years ago

I can corroborate. I just installed the Firebase Stripe Extension and the Cloud Functions the extension creates are pointing at invalid source objects, seemingly causing the "Failed to retrieve function source code" error. image Error is "Archive not found in the storage location". If I deploy using gcloud functions deploy ext-firestore-stripe-subscriptions-createCheckoutSession, I get

Deploying function (may take a while - up to 2 minutes)...failed.
ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed: could not resolve storage source: googleapi: Error 404: No such object: gcf-sources-1083565983701-us-central1/ext-firestore-stripe-subscriptions-createCheckoutSession-7645d6a9-1a8e-46da-8335-40907373cbb6/version-4/function-source.zip, notFound
SuneelFreimuth commented 3 years ago

Looks like this issue might be affecting all new installations of the extension... Using the Firebase CLI tool, I tried installing another instance of the extension using v0.1.7 in an attempt to roll back; I'm seeing the same issue:

Screen Shot 2020-12-10 at 2 27 02 PM Screen Shot 2020-12-10 at 2 22 59 PM

I saw this error a few times while doing the configuration. When it showed up, I retried saving the configuration and it wouldn't show up.

Calvin087 commented 3 years ago

I thought I was going crazy not being able to find this issue anywhere on the internet. Thought it was just me. Consistent errors upon installing the extension using the CLI

Screenshot 2020-12-10 at 17 17 18

hand-dot commented 3 years ago

I'm in the exact same situation. It worked fine until a few days ago, but yesterday it started acting weird.

However, the same error occurred when I installed Sync with Mailchimp, so maybe this is not a stripe problem but a firebase problem.

Can I install other extensions? I was not able to.

thatfiredev commented 3 years ago

Hey everyone, this bug seems to be happening for all Firebase Extensions. The recommendation is to install or upgrade extensions through the Firebase CLI, as per tinaliang's comment here:

Sorry you've been having the issues. Install should be working via the CLI now. We're working on fixing installs through the Console and will post another update when it's been rolled out. In the meantime, please use the CLI for all installs/udpates.

jaytavares commented 3 years ago

I think Firebase might have fixed the issue. I was able to install the Stripe subscriptions extension in a new project with success. I also updated the extension in one project. For that one, after updating, I also had to delete the cloud functions it had originally created and "reconfigure" the extension to cause it to recreate the functions.

SuneelFreimuth commented 3 years ago

I think Firebase might have fixed the issue. I was able to install the Stripe subscriptions extension in a new project with success. I also updated the extension in one project. For that one, after updating, I also had to delete the cloud functions it had originally created and "reconfigure" the extension to cause it to recreate the functions.

The extension now works for me as well; the functions fetch their source code correctly.

cjavilla-stripe commented 3 years ago

Thanks for the updates folks. It looks like this was resolved by Firebase, so I'm going to close for now. Please feel free to re-open if the issue reoccurs.

zaheddec commented 3 years ago

seeing the same issue in v0.1.10 https://github.com/stripe/stripe-firebase-extensions/issues/145

Machdata commented 2 years ago

Having the same issue with https://firebase.google.com/products/extensions/firebase-firestore-bigquery-export?authuser=0 There is no more export extension only stream collections I installed extension it was mirroring for. a few days then it stopped I tried reinstalling the error persiists The extension is not creating the tables anymore

adprojects202 commented 1 month ago

Seeing same issue