Posts

Showing posts with the label google-cloud-functions

Firebase CLI: the following filters were specified but do not match any functions in the project

Image
Clash Royale CLAN TAG #URR8PPP Firebase CLI: the following filters were specified but do not match any functions in the project I use Firebase Cloud Functions in my project, and I have a plenty of them so when I run the regular firebase deploy I exceed the quota, so one option is to deploy only the function that was modified by using firebase deploy --only functions:function1 as mentioned in this web page. This method works only with functions that start with: exports.funcName but when I try to use it with a function like this: Firebase Cloud Functions firebase deploy firebase deploy --only functions:function1 exports.funcName function doesNotStartWithExports() { // Does something. } It doesn't work. I use firebase deploy --only functions:doesNotStartWithExports but I get this output: firebase deploy --only functions:doesNotStartWithExports ⚠ functions: the following filters were specified but do not match any functions in the project: doesNotStartWithExports The Question...

Google Cloud Functions Text Extraction from image using Vision API

Image
Clash Royale CLAN TAG #URR8PPP Google Cloud Functions Text Extraction from image using Vision API I am following the tutorial to extract text from images at: https://cloud.google.com/functions/docs/tutorials/ocr?authuser=1 But I do not wish to translate the text, I wish to detect and save the text. The tutorial implements 3 functions: gcloud beta functions deploy ocr-extract --trigger-bucket [YOUR_IMAGE_BUCKET_NAME] --entry-point processImage gcloud beta functions deploy ocr-translate --trigger-topic [YOUR_TRANSLATE_TOPIC_NAME] --entry-point translateText gcloud beta functions deploy ocr-save --trigger-topic [YOUR_RESULT_TOPIC_NAME] --entry-point saveResult I just wish to detect text and save the text but I could not remove the translation portion of the code below: /** * Detects the text in an image using the Google Vision API. * * @param {string} bucketName Cloud Storage bucket name. * @param {string} filename Cloud Storage file name. * @returns {Promise} */ function detectText...

Can I zip files in Firebase Storage via Firebase Cloud Functions?

Image
Clash Royale CLAN TAG #URR8PPP Can I zip files in Firebase Storage via Firebase Cloud Functions? Is it possible to compress multiple files in Firebase Storage using Cloud Functions? For example, there are 5 images uploaded by users and Firebase Cloud Functions will create a zip file for these 5 images By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Delete all firebase functions

Image
Clash Royale CLAN TAG #URR8PPP Delete all firebase functions I have a firebase project with multiple functions deployed. Is it possible to remove all the functions in a single go through the CLI? I tried the command firebase functions:delete --region us-central1 and the error output was Error: Must supply at least function or group name. firebase functions:delete --region us-central1 Error: Must supply at least function or group name. As of right now, I deleted all of them specifying each of their names as such: firebase functions:delete function1 function2 ...functionN but this is very cumbersome. firebase functions:delete function1 function2 ...functionN The version of firebase-tools installed is v4.0.0 2 Answers 2 Just comment (or delete) all the functions in your index.js file and redeploy it through the CLI. So its not possible to delete the functions without redep...