Category "google-cloud-functions"

cannot find module "firebase-functions"

I imported and downloaded: firebase-functions and firebase-admin using npm i <package> but it give me a lint error like: cannot find module "firebase-func

asyncio not working on Google Cloud Functions

I have this function which works fine locally on my machine with python 3.8, but it throws runtime error on Google Cloud Functions. def telegram_test(request):

Unit testing callable firebase function with App Check enabled

I am trying to unit test my firebase callable cloud function according to the examples provided. See Firebase Example. It boils down to something like this cons

Cloud Functions - Remove default logging from StackDriver?

Stackdriver logs a function call for it's execution duration per each call. Is there a way to in gcloud when during deployment to disable this behavior? My con

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