Questions tagged [google-cloud-functions]

Google Cloud Functions is a lightweight, event-based, asynchronous compute solution that allows you to create small, single-purpose functions written in Node.js, Python or Go that respond to cloud events without the need to manage a server or a runtime environment.

Google Cloud Functions is a lightweight, event-based, asynchronous compute solution that allows you to create small, single-purpose functions written in or that respond to cloud events without the need to manage a server or a runtime environment.

Related tags:

17585 questions
4
votes
1 answer

How to know if Google Cloud function is running in dev or prod?

Trying to find out if there is a programmatic way to know, when running a cloud function, if it's running in dev (locally with functions-framework) or in prod (deployed). E.g. in Google AppEngine, we could know if it was running in dev or prod…
Neurus
  • 657
  • 4
  • 27
4
votes
2 answers

Some Cloud Functions regions were unreachable, please try again later

I am trying to deploy my firebase project as usual, but today I am facing an error that I couldn't find a refrence for online. i deploying database, functions, hosting i database: checking rules syntax... ✔ database: rules syntax for database…
tinyCoder
  • 350
  • 13
  • 37
4
votes
3 answers

Setting deploy region in firebase configuration file

Is there a way of defining which region to use when deploying a function to firebase using either the firebase.json or the .firebaserc files? The documentation around this doesn't seem to be clear. Deploying the firebase functions using GitHub…
Skaleb
  • 308
  • 2
  • 10
4
votes
2 answers

GCP Cloud Functions: Node.JS Versions Roadmap

Currently GCP Cloud functions only support Node 8. Node8 is out of support since end of 2019. Node10 runtime of GCP functions is in beta phase since April 2019. Google does not commit to any SLAs on a beta runtime. As other GCP services and libs…
laetus
  • 150
  • 6
4
votes
2 answers

local test firebase functions with typescript

I have a problem with local test functions in typescript. Now, I used npm run build && firebase serve --only functions to run local functions, but every change I made on the code, I need to run this command again to see the result. I want to view…
4
votes
1 answer

Execute code in client-side vs google-cloud-function

I am in the situation of having to perform some writes to my database, which have quite a few relationships with different collections and also include file uploads to firebase storage. At this point was when I asked myself, should my client take…
4
votes
1 answer

Firebase cloud functions compress video

I have successfully implemented video sharing in my app using react native and firebase, but I want to ensure videos being stored are no more than 1080x1080 (maybe 720 depending how it looks). Videos are max 8 seconds long, I am trying my best to…
4
votes
1 answer

Flutter app giving UNAUTHENTICATED errors when calling Firebase cloud functions directly

I tried using firebase cloud functions oncall method directly from my FLUTTER app and it keeps giving me an UNAUTHENTICATED error even when I am logged in Flutter app code CloudFunctions function = CloudFunctions.instance; final HttpsCallable…
Mayor
  • 303
  • 2
  • 7
4
votes
1 answer

No connection established with Cloud Functions and Firestore

I'm having issues with connecting to my firestore DB from a cloud function. I get the below error: i functions: Beginning execution of "test" > Error: 14 UNAVAILABLE: No connection established > at Object.callErrorFromStatus…
4
votes
0 answers

Group Android notifications in Firebase Cloud Messaging using Cloud Functions

I have a Cloud Function that send notifications to iOS/Android devices through Firebase Cloud Messaging. We can group notifications for iOS devices by specifying thread-id in the FCM notification payload. How could I do the same for Android…
4
votes
2 answers

Google Cloud Functions with VPC Serverless Connector Egress with Cloud NAT not working

This is related to the following questions, which are outdated Possible to get static IP address for Google Cloud Functions? Google Cloud - Egress IP / NAT / Proxy for google cloud functions Currently GCP has VPC Serverless Connector that allows…
4
votes
1 answer

Firebase Callable Cloud Function CORS Error

The following is the client side code to call the cloud function: var getShippingRate = firebase .functions() .httpsCallable("shippo-generateShippingRate"); getShippingRate({ address: shippo }) …
4
votes
2 answers

Type '{}' is missing the following properties from type 'Request': get, header, accepts, acceptsCharsets, and 67 more

I'm testing my endpoints in offline mode mocking/faking all the data. Based on the Firebase Unit testing of Cloud functions docs, they use it as following: const req = { query: {text: 'input'} }; const res = { redirect: (code, url) => { …
atereshkov
  • 4,311
  • 1
  • 38
  • 49
4
votes
1 answer

How to delete document collection and all nested data from auth.user.onDelete trigger

Currently, the logic for deleting user data is the following: import * as admin from 'firebase-admin'; import * as functions from 'firebase-functions'; const firestore_tools = require('firebase-tools'); admin.initializeApp(); const Auth =…
volna
  • 2,452
  • 4
  • 25
  • 61
4
votes
1 answer

Cloud Functions using wildcard path don't work

I try to update all documents in a collection with a Cloud Function. With this code it worked for updating one document (with the id 0) in the collection releasedQuestions: exports.decreaseQuestionRestDuration = functions.https.onRequest((request,…
1 2 3
99
100