Comments (9)
After some digging I think I found a workaround for the issue.
Configure the extension with a correct bucket URL for a bucket that doesn't exist. (e.g. ThisDoesNotExist.appspot.com)
Go to Google Cloud Console and pick your project.
You should see something like this:
The function ext-storage-resize-images-generateResizedImage (your extension) should be have a red icon next to it.
Go to the function, and reconfigure it (Edit -> Bucket)
You can add your custom bucket there, the validation in there works just fine (actually you can use the bucket browser in there)
I hope this works for you. It's not elegant, but at least it's a temporary fix for me.
from extensions.
I'm trying to setup the extension for a custom bucket in my firebase project.
The default bucket in the Storage explorer is named myproject.appspot.com
. When I use this in the extension configuration it works fine.
However, I want the extension to run on a different bucket, so I create a new bucket myproject-avatars
(note that I cannot add .appspot.com
here). Now the extension config forces me to enter a bucket name ending in .appspot.com
so I enter myproject-avatars.appspot.com
. This gives me the following error:
Error occurred while deploying resources: RESOURCE_ERROR: `/deployments/firebase-ext-storage-resize-images/resources/generateResizedImage` {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"Cloud Storage trigger bucket myproject-avatars.appspot.com not found"}
How can I use a custom bucket with this extension?
Thanks!
from extensions.
Hey @digimbyte 👋 I believe the expected format is my-project-or-bucket-12345.appspot.com
based on the example in the extension configuration yaml
The example should be showing in the UI as below:
The validation regex here is a bit loose on its validation, perhaps we should change this to be explicit and include the .appspot.com
domain. In its current format it accepts the input you posted in your issue (https://console.cloud.google.com/storage/browser/new-second-bucket
) which is incorrect.
cc @Ehesp
from extensions.
@textcolor That works, thanks!
from extensions.
That work around is a great find! i'll pass this on, hopefully the next version doesn't need this.
from extensions.
Thank you very much @textcolor! I hope they fix this soon...
from extensions.
@textcolor Thanks. This worked. But, it shows "Error installing." in the Extensions section and shows the old bucket name. And, is it not possible to choose a source folder?
from extensions.
I've posted a Stack Overflow answer here that should help in this case.
from extensions.
Closing via #153
from extensions.
Related Issues (20)
- Typo in `README.md` for `storage-resize-images` extension
- 🐛 [firestore-bigquery-export] multi-db selection isn't working for Firestore triggers HOT 1
- time partition not working for firebase extension(0.1.49) HOT 4
- 🐛 [Stream Firestore to BigQuery] fs-bq-import-collection doesn't recognize partitioned field HOT 1
- 🐛 [Stream-Firestore-BigQuery] Import existing Firestore documents into BigQuery HOT 2
- 🐛 [firestore-send-email] Email status SUCCESS but not delivered
- [firestore-translate-text] Source text is translated from Latin and not English HOT 2
- firefox
- [firestore-send-email] Email templates stopped working yesterday. HOT 2
- 🐛 [Vector Search with Firestore] Error creating firestore Vector index. backfillTrigger() fail HOT 25
- 🐛 [firestore-vector-search] model: 'text-multilingual-embedding-002' HOT 1
- 🐛 Stream Firestore to BigQuery - disable changelog HOT 1
- 🐛 [storage-resize-images] Extension crops the image with default settings. HOT 2
- 🐛 [storage-resize-images] Console error when trying to use the extension HOT 1
- 🐛 [firestore-translate-text] Error on updating Extension
- 🐛 [EXTENSION_NAME_HERE] allow schedule email
- 🐛 [firestore-translate-text] can not translate array field HOT 1
- 🐛 [firestore-bigquery-export] Task size too large errors occuring even with EXCLUDE_OLD_DATA set to yes/true HOT 2
- 🐛 [firestore-bigquery-export] Unhandled error PartialFailureError HOT 2
- [firestore-send-email] Only works on (default) database HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from extensions.