Category "google-cloud-functions"

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

Cannot add private python dependency to cloud function

I am trying to deploy a python cloud function on GCP, using a python package pushed on the artifact registry of another project. I followed the instructions off

Firebase deploy could not locate firebase.json

so, im a newbie in programming and still learning some stuff (i use windows btw) i try to make an app, connect it to firebase. after setting up everything its

How to give service account only access to one bucket (Google Cloud)?

How to give service account only access to one bucket? If you just in case wanna give another 3rd party service access to your private bucket? The problem is by

Google Cloud Functions sometimes doesn't find @google-cloud/* dependencies although the buildpack builds and runs fine in Docker on local

I am deploying a Google Cloud function and it fails to deploy because it sometimes doesn't find the module @google-cloud/pubsub and when it finds it, it instead

How to give restricted access of specific cloud function to third party

I have made a set of Cloud Functions and secured them by checking auth header like below if (!context.auth) return { status: "error", code: 401, message

Error: "Package firebase-functions has been ignored because it contains invalid configuration" - only occurs on Mac M1, not on Windows

When I try to build my react native app in both android and ios on my Mac M1, I get this error.....it does not occur when I build on Windows: Package firebase-f

Error: "Package firebase-functions has been ignored because it contains invalid configuration" - only occurs on Mac M1, not on Windows

When I try to build my react native app in both android and ios on my Mac M1, I get this error.....it does not occur when I build on Windows: Package firebase-f

Getting UNAUTHENTICATED Firebase scheduled functions

I've created a simple project in firebase and i wanted to try scheduled functions: https://firebase.google.com/docs/functions/schedule-functions After deploy I'

Firebase functions: cloud storage triggers not working because of insufficient permissions

I have a cloud function that is triggered by updates to storage. when I deploy any function that utilises cloud storage, I get an error code 7 and an insufficie