Skip to content

🐛 [storage-resize-images@0.2.10] Events not firing "firebase.extensions.storage-resize-images.v1.onSuccess" #2512

@surajpatil-coding

Description

@surajpatil-coding

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:

  1. Install the Firebase Extension storage-resize-images@0.2.10

  2. 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);
            }
          );
    
  3. Upload an image to the bucket
    
  4. 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.

Metadata

Metadata

Assignees

Labels

needs: author feedbackPending additional information from the authortype: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions