-
Notifications
You must be signed in to change notification settings - Fork 424
Description
Environment
• Extension: storage-resize-images@0.2.10
• Firebase CLI: (your version here, e.g. 13.12.1)
• Node.js: (your runtime, e.g. 18)
• Functions region: us-central1
• Billing enabled: Yes
Expected Behaviour
When the storage-resize-images extension finishes resizing an image, it should trigger the firebase.extensions.storage-resize-images.v1.onSuccess event. My custom Eventarc function (handleResizedImageSuccess) should then run.
Actual Behaviour
The extension successfully resizes and writes the images to Cloud Storage, but the onSuccess event is never fired. My event listener function does not execute.
No errors are logged from the extension, and resized files appear correctly in the bucket.
Steps to reproduce:
-
Install the Firebase Extension storage-resize-images@0.2.10
-
Deploy a Cloud Function listening to the onSuccess event:
import { onCustomEventPublished } from "firebase-functions/v2/eventarc";
import { logger } from "firebase-functions";
import { getFirestore } from "firebase-admin/firestore";
import { initializeApp } from "firebase-admin/app";export const handleResizedImageSuccess = onCustomEventPublished( { eventType: "firebase.extensions.storage-resize-images.v1.onSuccess", region: "us-central1", }, async (event) => { logger.info("Function triggered:", event); } ); -
Upload an image to the bucket -
Confirm that:
• The extension resizes the image correctly
• ✅ No onSuccess event is triggered
• ❌ Function handleResizedImageSuccess never logs anything
Logs / Evidence
• Resized image is created in the bucket
• No onSuccess event is delivered to Eventarc function
• No errors reported in Firebase Logs
Additional Context
• I confirmed that Eventarc works for other custom events in the same project.
• The problem seems specific to this extension’s onSuccess event not being published.