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
0 answers

Firebase Functions Error: Could not load the default credentials

I'm getting an issue from the title with the full error log here: Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information. at GoogleAuth.getApplicationDefaultAsync…
4
votes
0 answers

How to stop sending requests to Firebase Emulators?

My Project: Google Cloud Functions sends a SOAP request to a 3rd party API, using a Scheduled Function (Pubsub + Cloud Scheduler), parses, sanitizes and stores the response in Firestore. It's authenticated with a Service Account. What's Wrong: It's…
4
votes
1 answer

ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Build failed Error ID: 6191efcd

I am getting the following error since this morning but nothing changed regarding my code (just added a log.println()... Even getting back to a previous version that was deployed doesn't solve the issue) trigger.go (entry point) // The function that…
Emixam23
  • 3,854
  • 8
  • 50
  • 107
4
votes
2 answers

How to make gcp cloud function public using Terraform

I will start by saying I am very new to both GCP and Terraform, so I hope there is a simple answer that I have just overlooked. I am trying to create a GCP cloud function and then make it public using Terraform. I am able to create the function but…
4
votes
3 answers

UNAUTHENTICATED error in firebase firestore https callable cloud functions

Recently I added a couple of new callable firebase cloud functions to my mobile app. The thins is, once I deployed and tested my functions I was not able to invoke them failing with an UNAUTHENTICATED error. I re-deployed all my functions and still,…
honor
  • 7,378
  • 10
  • 48
  • 76
4
votes
1 answer

How to set functions region for React Native Firebase

I have a react native app with react-native-firebase and I'm trying to run a callable https firebase function which is deployed to a custom region. I've read that firebase.app().functions("MY-REGION") so I tried the following: import { firebase }…
4
votes
1 answer

Firebase Cloud Functions to run Python script

I have an Express application that spawns a Python process to execute a Python script. When I do a firebase serve, I can see that my endpoint is being hit, which then runs the Python process. However, the process doesn't seem to be executing. const…
natn2323
  • 1,983
  • 1
  • 13
  • 30
4
votes
2 answers

External network resource requested! - log error from firebase emulator

I tried to signup and login to firebase . I use Firebase (fire-store), postman, express(REST API). my code (index.js) const functions = require("firebase-functions"); const admin = require("firebase-admin"); admin.initializeApp(config); // i'm not…
4
votes
1 answer

How to deploy google cloud function when main.py and requirements.txt aren't in the same directory

I have a directory structure that looks like this: src/ main.py requirements.txt Since there doesn't seem to be any configurability surrounding where to look for requirements.txt, I have been resigned to running gcloud functions deploy in the…
notacorn
  • 3,526
  • 4
  • 30
  • 60
4
votes
1 answer

puppeteer.launch in Cloud Functions throwing error

I've been working on a gcloud function with React and Puppeteer. My team and I have come across this problem we can't seem to solve. We've looked almost everywhere. Cloud function index.js const functions = require("firebase-functions"); const…
4
votes
2 answers

SyntaxError: Unexpected reserved word, for await loop

I have a function like this: exports.deleteUser = functions.https.onCall(async(data, context) => { let id = context.auth.uid; console.log('Delete user: ' + id); //delete from algolia usersIndex.deleteObject(id); console.log(id +…
Milvintsiss
  • 1,420
  • 1
  • 18
  • 34
4
votes
2 answers

Get a list of firestore documents from array of id's

I've get a firestore collection, one of his values is an array of documents id. I need to retrieve all items of collection and also all documents stored in array ids. this is the struct of my collection my code: export const getFeaturedMixes =…
4
votes
1 answer

Firebase - Admin.firestore vs functions.firestore

I'm newbie on cloud function. I have some confusions. Is there any difference between admin.firestore and functions.firestore? Is admin.database for real-time database? So if cloud functions are basically written as JavaScript or TypeScript in…
4
votes
1 answer

Not able to deploy PubSub function in firebase cloud functions

I was trying to deploy a PubSub function: exports.sendReminder = functions.pubsub.schedule('0 6 * * *').timeZone('Asia/Kolkata').onRun((context) => { console.log('Wake up! It\'s 6AM'); return null; } ); Cloud schedular API…
4
votes
3 answers

Run a gsutil command in a Google Cloud Function

I would like to run a gsutil command every x minutes as a cloud function. I tried the following: # main.py import os def sync(): line = "gsutil -m rsync -r gs://some_bucket/folder gs://other_bucket/other_folder" os.system(line) While the…
1 2 3
99
100