Resize-image-extension "firebase.extensions.storage-resize-images.v1.complete" event trigger can not be created
See original GitHub issue[READ] Step 1: Are you in the right place?
YES
Extension Configuration
- Extension name: storage-resize-images
- Extension version: 0.1.28
- Configuration values (redact info where appropriate):
- Events enabled
PROBLEM
Even if Events is enabled for this extension, it can not be deployed with creating event trigger.
It’s always showing -
`⚠ functions: HTTP Error: 400, Cannot create trigger projects/<project-id>/locations/us-central1/triggers/onimageresized-891786: The request was invalid: The request was invalid: invalid value for attribute ‘type’ in trigger.event_filters: “firebase.extensions.storage-resize-images.v1.complete”
⚠ functions: failed to create function projects/<project-id>/locations/us-central1/functions/onimageresized Failed to create function projects/<project-id>/locations/us-central1/functions/onimageresized ` It’s stating that event type is not valid somehow. I think that probably it’s not creating trigger in eventArc channel.
Steps to reproduce:
- This code is creating problem. Whenever I try to create event listener for stoarge-resiize-images extension, the above mentioned error is happening.
exports.onimageresized = onCustomEventPublished("firebase.extensions.storage-resize-images.v1.complete", (event) => { console.info("Received image resize completed event", event); });
Expected result
It should be deployed
Actual result
Throwing error
`⚠ functions: HTTP Error: 400, Cannot create trigger projects/<project-id>/locations/us-central1/triggers/onimageresized-891786: The request was invalid: The request was invalid: invalid value for attribute ‘type’ in trigger.event_filters: “firebase.extensions.storage-resize-images.v1.complete”
⚠ functions: failed to create function projects/<project-id>/locations/us-central1/functions/onimageresized Failed to create function projects/<project-id>/locations/us-central1/functions/onimageresized `
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top GitHub Comments
There appears to be a bug in the Firebase CLI
11.2.*
. As a workaround please downgrade the CLI to11.1.0
npm install -g firebase-tools@11.1.0
Actually, Firebase CLI is a more appropriate place to track this issue and someone else already filed an issue there as well. I’ll close this issue in favour of https://github.com/firebase/firebase-tools/issues/4744