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
44
votes
6 answers

Secure Google Cloud Functions http trigger with auth

I am trying out Google Cloud Functions today following this guide: https://cloud.google.com/functions/docs/quickstart I created a function with an HTTP trigger, and was able to perform a POST request to trigger a function to write to Datastore. I…
42
votes
6 answers

Firebase cloud function "Your client does not have permission to get URL /200 from this server"

I just made a firebase cloud function : exports.deleteAfterSevenDays = functions.https.onRequest((req, res) => {... I deployed the function and got a function URL. When I request this url from my browser I get the following message : "Error:…
Alex9494
  • 828
  • 1
  • 9
  • 19
42
votes
6 answers

Cloud Functions for Firebase Async Await style

Looks like Cloud Functions does not support Async-Await notation. Is there a way I could use Babel until they do or is it recommended to use promises? My current function that sits on Node is like so: exports.getToken = async (req, res) => { //1.…
Brandon
  • 587
  • 1
  • 4
  • 6
42
votes
5 answers

firebase deploy to custom region (eu-central1)

is there a way to specify the Region/Zone where my firebase functions will be deployed. Actually i didn't found anything about that in the documentation and my functions are always deployed to us-central1 but i want to have it on eu-central1... Is…
BernhardS
  • 716
  • 2
  • 7
  • 21
42
votes
5 answers

How do you un-deploy Cloud Functions for Firebase?

I was experimenting with Cloud Functions for Firebase and deployed one of the samples in the functions-samples repo and linked it to an existing project using firebase use --add. Since I was just playing around, these files were not added to my…
HowlingFantods
  • 712
  • 1
  • 6
  • 13
41
votes
9 answers

400 Billing account for project is not found. Billing must be enabled for activation of service(s)

I am create API with firebase via this tutorial here. On I run: firebase deploy I get this error on the command line: HTTP Error: 400, Billing account for project '381106441303' is not found. Billing must be enabled for activation of service(s)…
Hao
  • 411
  • 1
  • 4
  • 4
41
votes
3 answers

Cloud Functions for Firebase error: "400, Change of function trigger type or event provider is not allowed"

When I run firebase deploy I get this error message: functions: HTTP Error: 400, Change of function trigger type or event provider is not allowed
Thomas David Kehoe
  • 7,232
  • 7
  • 44
  • 73
41
votes
3 answers

Running Cloud Functions locally gives error "functions.config() is not available"

Cloud Functions for Firebase was just recently released and I am following the instructions on a fresh install. Here is the "Get Started" page. I have installed "npm install -g firebase-tools" and all my files are in my project. I am using WebStorm…
temp_
  • 968
  • 2
  • 7
  • 20
41
votes
8 answers

Google Cloud Functions enable CORS?

I just finished the Hello World Google Cloud Functions tutorial and received the following response headers: Connection → keep-alive Content-Length → 14 Content-Type → text/plain; charset=utf-8 Date → Mon, 29 Feb 2016 07:02:37 GMT Execution-Id →…
Federico Elles
  • 4,439
  • 7
  • 25
  • 34
40
votes
3 answers

Cloud Functions for Firebase - action on email verified

Im trying to create a Cloud Function trigger that will execute after email has been verified. In the Cloud Functions samples I could only find examples on triggers for onCreate and onDelete. Within the documentation I found something about creating…
deloki
  • 1,603
  • 2
  • 18
  • 26
40
votes
1 answer

Sending automated emails from Firebase through Google Cloud Platform (no third parties)

We've been doing some research for many hours already. The first solution that appears everywhere (other StackExchange questions too) is using third-party service SendGrid.com and sometimes in conjunction with Zapier, but that's not the approach we…
40
votes
6 answers

Possible to get static IP address for Google Cloud Functions?

I would like to develop a Google Cloud Function that will subscribe to file changes in a Google Cloud Storage bucket and upload the file to a third party FTP site. This FTP site requires whitelisted IP addresses of clients. As such, it is possible…
EthanS
  • 544
  • 1
  • 4
  • 8
39
votes
9 answers

how to test Cloud Functions for Firebase locally on pc

Today Firebase released its brand new product Cloud Functions for Firebase and I just created a hello world function and deploy it on my existing firebase project. It looks like it bundles all dependencies and upload it to firebase just like aws…
37
votes
8 answers

Stripe Error: No signatures found matching the expected signature for payload

I have a stripe webhook that call a Firebase function. In this function I need to verify that this request comes from Stripe servers. Here is the code : const functions = require('firebase-functions'); const bodyParser =…
Zat42
  • 1,652
  • 4
  • 19
  • 32
37
votes
7 answers

How to connect Google Cloud SQL from Cloud Functions?

I am trying to use Cloud Functions for Firebase to build an API that talks with a Google Cloud SQL (PostgreSQL) instance. I am using HTTP(S) trigger. When I white-list my desktop's IP address, I can connect to the Cloud SQL with the function's…