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:

12970 questions
3
votes
3 answers

firebase cloud function post request body

I am making an http request from an angular form like that: this.http.post(this.endPoint, formData, { responseType: 'text' }).subscribe( res => { console.log(res); } ) And I have a simple cloud function: const functions =…
Giannis Savvidis
  • 642
  • 1
  • 9
  • 26
3
votes
0 answers

How to download folders (including files) in firebase storage with cloud functions in zip format and download them locally

I'm developing WEB applications in React, front-end and serverless environment (Firestore + Cloud Functions). I want to download folders in firebase storage in zip format with cloud functions and download them locally. The following code does not…
3
votes
1 answer

Firebase functions - DELETE request has no body params on firebaseapp domain

I migrated one of my express app to firebase functions. Everything works perfectly except for DELETE requests that have a form body. When I access my function directly on this url…
abdu
  • 637
  • 5
  • 14
3
votes
2 answers

Google Cloud Functions: error deploying, main.py doesn't exist

Deploying Google Cloud Functions from the local system fails with the following error: ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Function load error: File main.py that is expected to define function doesn't exist I've used…
Alex Ciminian
  • 10,837
  • 14
  • 57
  • 92
3
votes
0 answers

Accessing additional claims from a triggered Cloud Function

I'm currently looking at building a custom authentication login flow, utilising additional claims / custom claims with Cloud Firestore and Cloud Functions. The general process I would like to happen is as follows: Sign in to my own auth system and…
3
votes
4 answers

Firebase Storage-How to delete file from storage with node.js?

I want to delete a folder in firebase storage with node js because this is a firebase function. For example : storageRef.child(child1).child(child2).delete(); something like this, but firebase documentation doesn't tell anything. One more…
3
votes
0 answers

Firebase Cloud Functions returns error when trying to send a message

I'm using Firebase Cloud Functions to send notifications to users when certain events in Firestore are triggered. The example code below was working some time ago, but now I'm getting an error when I try to run this code import * as functions from…
3
votes
1 answer

How do I query Firebase using Typescript?

I have push notifications set up for my app using Firebase Cloud Functions. It works well. Now I want to update the app's badge count as part of the push notification. I've read that the only way to do that is via server-side code; I can't do it…
Phontaine Judd
  • 308
  • 5
  • 14
3
votes
3 answers

Is there a variable for accessing the version number for a given deployed cloud function

GCP displays the version number of a deployed cloud function in the console. At the moment there isn't a system environment variable which contains information about the deployment - there is no version, nor deployment date. Given that version…
Todd
  • 14,946
  • 6
  • 42
  • 56
3
votes
1 answer

Thumbnail generated from first image is duplicated for others on Firebase storage

After I upload an image. Cloud function generate its thumbnails as specified in the concerned firebase function using sharp on typescript. But for the second image and so on, thumbnails are generated and named correctly as expected but it contains…
3
votes
1 answer

Multi-Thread Firebase function

So I am developing a Firebase function that accepts requests from users and updates few nodes under a branch these users are listening to. My issue is if the function receives two client requests at the same time, that triggers two functions to…
3
votes
0 answers

Firebase cloud function to use sendgrid for sending emails when a contact form gets submitted to firestore

I want my firebase backend to send an email to me when a document is created in a firestore collection based on a form submission in my vue app.. I found sendgrid to be the easiest to get the job done, the example mentioned in the package page…
3
votes
1 answer

How to return a JSON from Google Cloud functions using PUBSUB as trigger?

I am publishing to topics using Python pubsub client, and there is a cloud function set up that is triggered by pubsub messages. I can trigger the function properly and generate the desired return value but I cant figure to return that value to…
3
votes
1 answer

Is there an way to see a number of invocation per firebase function in the firebase console?

We are using a firebase platform for our recent projects. We recently launched and have been monitoring the usage. I can see total number of firebase invocation in the firebase console but could not find the way of seeing the number of invocation…
3
votes
1 answer

How to listen to multiple databases in google cloud functions

I want to listen to two databases in my google cloud functions so I tried this const app1 = admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: "https://honey.firebaseio.com" }); const app2 =…
e.iluf
  • 1,145
  • 2
  • 18
  • 34
1 2 3
99
100