question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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. Screenshot 2022-07-14 at 11 52 58 PM

Steps to reproduce:

  1. 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:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
pavelgjcommented, Jul 14, 2022

There appears to be a bug in the Firebase CLI 11.2.*. As a workaround please downgrade the CLI to 11.1.0 npm install -g firebase-tools@11.1.0

1reaction
pavelgjcommented, Jul 14, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot create a function that depends on eventarc event filter ...
Cannot create a function that depends on eventarc event filter"firebase.extensions.storage-resize-images.v1.complete" #4744.
Read more >
How to get logs of eventarc events - Stack Overflow
Eventarc audit logs use the resource type audited_resource for all audit logs. You can view audit logs in Cloud Logging by using the...
Read more >
Create and handle custom event triggers - Firebase - Google
With Cloud Functions (2nd gen),you can trigger functions in response to custom events. ... "firebase.extensions.storage-resize-images.v1.complete", (event) ...
Read more >
Gain control of your Firebase Extension with ... - Medium
We configured the Firebase Extension Event to be triggered when an uploaded image has been resized. We created and deployed a Cloud Function...
Read more >
Resize Images | Extensions Marketplace by Firebase
Made by Firebase. Resizes images uploaded to Cloud Storage to a specified size, and optionally keeps or deletes the original image.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found