Category "google-cloud-functions"

How to send data via HTTP request to Firestore database

So, I am trying to make an app with Node.js, Vue, and Firebase. I currently have a very basic function using firebase functions to send data to the realtime dat

firebase how to deploy only specific function of express() app

I use an Express app on cloud functions deployed with the Firebase CLI. What is the way to deploy only one specific function? const app = express(); app.post(

Google Cloud functions Java 11 - How to Debug locally ? Avoid the need of re deploy with logs

I am using intellij IDE and maven project. To debug cloud function, every time I need to Re-deploy with SYSO logs and taking 2 mins to upload. Do we have any me

Extracting excel files from the FTP to BigQuery using Cloud Functions

I am working on creating an automated script to download files from a FTP and store them into BigQuery. Problem is that BigQuery accepts only .csv files. For t

credentials used to authenticate does not have permission

I am trying to use firebase cloud messaging to deploy a http push notifications onto an actual device. When so, I am getting the error "The credential used to a

Generate bearer token for cloud function consumption GCP -Java

I'm trying to connect to cloud function such as https://us-central1-<>.cloudfunctions.net from java, and I'm trying to generate the bearer token for this

"Unexpected token stripe" when trying to deploy Firebase Functions

I'm trying to incorporate Stripe into an iOS app using Firebase Functions. I'm following the Stripe documentation for "Accepting a payment" in Swift with Node b

Firebase secrets not defined in process.env

I'm writing a Firebase function with Cloud Storage trigger. Like this const functions = require('firebase-functions') const doSomethingWithSecrets = require('./

Firebase RTDB trigger not fired from Flutter Firebase SDK triggering event

I am developing an application in Flutter and during development, I encountered this anomaly. On Firebase Realtime Database I have a simple trigger for testing

when ever I run npm install, it fails

I am getting below error, while running npm install. Is there anything need to be done in nodejs or some other issue. I am getting below error, whenever I use n

Firebase admin: list all users returns empty array

I have an https-callable firebase cloud function to return all users as an array of their userRecords. I push each of the userRecords into an array which I late

Firebase Cloud functions: Typescript does not compile to JavaScript

Cloud function on my computer works with Javascript, but when I try it using TypeScript it does not compile to Javascript. It does not event create lib/index.js

"pyarrow.lib.ArrowInvalid: Casting from timestamp[ns] to timestamp[ms] would lose data" when sending data to BigQuery without schema

I'm working on a script where I'm sending a dataframe to BigQuery: load_job = bq_client.load_table_from_dataframe( df, '.'.join([PROJECT, DATASET, PROGRAMS

Unit testing for Google Cloud Functions

I was trying to write unit testing for Google Cloud Functions referring to Google Cloud Platform unit testing docs but not able to understand how to mock when G

Firebase Cloud Functions Cannot find module error in logs

I am trying to Serve Dynamic Content with Cloud Functions and NextJS. Everything is working as expected locally when I run firebase serve. But when I run fire

Retry on Firebase functions with pubsub

I am using firebase functions with pubsub. The functions are invoked every time there is an incoming message (push) I am looking at incorporating retry mechanis

Return observable while doing task - Firebase Functions

I have a function in my Firebase Cloud Functions that needs to run a scraping task. While the function is scraping the public website I need to return to the co

How can I specify the region of a Google Cloud Function?

I'm currently using Google Cloud Function to build up my restful API. However, I've found that it's slow because the my Google-Cloud-Function server is on "us-c

Firebase function: Callable request verification passed

I have defined a firebase function like this: exports.getTestResults = functions.region("europe-west3").https.onCall((data, context) => { return {

GCP - Cloud Function can't find Python package from Artifact Registry in the same project

I've been trying GCP's Artifact Registry, which is currently in alpha for Python packages. I do the authentication via Keyring along with my service account, as