Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
10 views

Firebase functions not changing firestore database

I'm new to firebase functions and recently I was tasked with adding two new functions. One needs to run daily at midnight and the other runs whenever a budget for an order in a firebase collection (...
Franco Garcia's user avatar
0 votes
1 answer
22 views

ERR_NETWORK_IMPORT_DISALLOWED when I run `firebase emulators:start`

I am implementing a payment gateway. I am using Firebase Cloud Functions to run these APIs. I have a functions folder that has my functions and everything is set up for them. I am emulating the ...
M.Ismail's user avatar
0 votes
0 answers
38 views

Firebase v2 Database Triggers not able access parent data from within trigger

It seems as if my promise to get parent data from within my Realtime Database trigger doesn't resolve. Realtime Database Structure: { matches: { {matchId}: { startAt: number, endAt: ...
steven oyinlola's user avatar
0 votes
0 answers
37 views

Google Cloud Function with Node.js 12 still running past Node.js decommission date [closed]

I have a Google Cloud Function (1st gen) running on Node.js 12. According to the warning message in the Google Cloud Console, Node.js 12 was supposed to be decommissioned on January 30, 2025: Node.js ...
Max's user avatar
  • 101
1 vote
2 answers
34 views

Alternative to 'assert' in Node JS with strict mode

I have a Firebase Functions project that has "type" set to "module" in package.json so that I can use ES6 syntax. Some of the files import data from another json file with a line ...
Matthew Michaud's user avatar
0 votes
0 answers
42 views

Firebase Cloud Functions CORS Issue When Using Credentials

I'm encountering a CORS error when I set my frontend API calls to include credentials. Without credentials, the requests work fine. However, once I set credentials: 'include', I no longer receive any ...
Mohamed DOURAI's user avatar
0 votes
1 answer
31 views

I'm having trouble deploying my dynamic Next.js app on Firebase

I've set up my Next.js app with dynamic routes like blogs/[slugs]/page. Static pages work without issues, but when I add dynamic routes, I encounter npm dependency errors. I'm using "tailwindcss&...
Keerthika's user avatar
0 votes
1 answer
47 views

How do Firebase v1 functions access secrets?

I have been moving a set of Firebase functions to version 2 and I can access secrets in OnCall functions using this syntax: export const fn = onCall({ secrets: getSecrets() }, () => ... The ...
jmc42's user avatar
  • 424
0 votes
0 answers
27 views

Firebase initialised successfully multiple times and memory issues [closed]

My setup is as follows: I have a main.py file, in which I import all my functions: from folder.file import function1 from folder.file import function2 cred = credentials.ApplicationDefault() ...
Raul Ponzheimer's user avatar
0 votes
0 answers
40 views

Rename Volume mounted in Google Cloud Function using Terraform

Is there a way to mount a .env file (from Secret Manager) as a volume within a Cloud Function using Terraform ? I'm switching to Terraform from plain bash gcloud cli commands and still don't know if ...
jSpeciale's user avatar
0 votes
1 answer
32 views

FireBase Push Notifications (FCM) Unity [duplicate]

I made a website enter information into the realtime Database through Firebase. I want to create an app through Unity and make it get a push alarm whenever new information is entered in Firebase in ...
Debug's user avatar
  • 1
0 votes
0 answers
41 views

Cloud Run Fails to Import Custom Package from Artifact Registry (Terraform Deployment)

I'm deploying a Cloud Run function using Terraform, and the function depends on a custom Python package that we uploaded to Google Artifact Registry using Twine. However, the deployment fails with the ...
Daniel's user avatar
  • 5,391
0 votes
1 answer
34 views

Unit testing Python Firebase Cloud Functions in Flutter and VS Code - can't get the modules to import

I have a Flutter project that has Firebase enabled with cloud_functions. It has created a functions directory in the root of the Flutter project. Project Structure my-app/ ├─ lib/ ├─ ios/ ├─ functions/...
Mark J's user avatar
  • 3
0 votes
0 answers
26 views

How to Implement Scalable Custom Scheduled Push Notifications in Flutter Using FCM Without WorkManager?

I’m developing a Flutter app where users can set custom schedules for receiving push notifications. Each user can choose their own frequency, such as: 10 notifications per day 5 notifications per day ...
Mahdi Zareei's user avatar
0 votes
0 answers
25 views

Firebase cloud function with With Angular context serverless with 401 - Unauthorized

I just deployed my first Angular Serverless Project, now i need to apply claims like Admin, and Roles like User . If i put UID static, aparentely it work, but when i use data from Frontend I have 401, ...
Tonyfilho's user avatar
0 votes
0 answers
15 views

Firestore - Querying a collection based on current time

I would like to retrieve a list of events stored in a Firestore collection in Python. I want to retrieve only future events (but I also want to keep past events up to 2 hours). I also want to listen ...
Zkimi's user avatar
  • 23
0 votes
0 answers
27 views

How do I run genkit from inside a firebase function with express

I'm having a bit of trouble understanding how to make the genkit work together with an normal firebase function running express. I have them running in separate functions at the moment (unable to call ...
Michael Jiang's user avatar
1 vote
1 answer
44 views

Calling a Firebase Cloud Function gives me List<Map<Object?, Object?>> but how can I cast it to something I can use? [duplicate]

I am calling a Firebase Cloud Function like this: final result = await FirebaseFunctions.instance.httpsCallable('users').call(); if (result.data != null) { final data = result.data as List<Object?...
Neigaard's user avatar
  • 4,064
2 votes
1 answer
52 views

FastAPI and Google cloud Error 504 when uploading media

I've been facing this error on GCP for several days, where I get the 504 error on cloud however on the local machine it's working perfectly. I'm using FastAPI for backend here is the endpoint : @...
RedBlue197's user avatar
0 votes
0 answers
38 views

Firebase Cloud Function (Firestore database) - Update millions documents in less than the hour limit [duplicate]

In our project, we need to update one field in the users collection in millions of documents once a day. We use the cloud function (Node.js) for this, recently we update 2 million documents in a time ...
Matt Trefies's user avatar
1 vote
1 answer
37 views

Cloud function exponentional back off stopping at 1 hour

I have a taskQueue type cloud function from Firebase/Google Cloud with a retry configuration of like the code below: retryConfig: { maxAttempts: 11, minBackoffSeconds: 120, maxDoublings: 10, } ...
RodXander's user avatar
  • 843
0 votes
1 answer
51 views

Which permissions do I need to deploy a Firebase Function?

I'm implementing some changes to an old somebody's project and I need to deploy a firebase function since its backend it's all on Firebase. The thing is that I've got the Cloud Functions Admin role, ...
Facundo's user avatar
  • 13
0 votes
2 answers
53 views

Razorpay payment gateway integration flutter error

i have been using razorpay for my flutter firebase app for a year now after migrating from cloud run v1 to v2 by deleting v1 functions and updating and redeploying them i've been getting this error ...
Salil's user avatar
  • 35
0 votes
1 answer
62 views

Hiding my API key from being accessed directly [duplicate]

My web app has a React frontend with a Node.js (Express) backend. My web app has a react-google-maps map. This map relies on an API key which I have created in my Google Cloud console. I created a ...
Åsmund Vassbotn's user avatar
0 votes
0 answers
26 views

Downloading the source of a Google Cloud Function [duplicate]

I wish to download the source code of Google Cloud Functions / Google Run Functions. How can that be done?
FuzzyAmi's user avatar
  • 8,147
0 votes
0 answers
24 views

Firebase Cloud Functions Python - Loading service account path for different env

I am attempting to deploy my Python Firebase Cloud Functions, but have not been able to do so because I'm using the same code base to deploy to different environment. I have set up different Firebase ...
Koh's user avatar
  • 2,897
0 votes
0 answers
31 views

Decrypt and verify the integrity token standard failed wrong number of segments in token

I have a problem for decrypt token from StandardIntegrityToken in Unity and back-end use Firebase function. Code in unity: public async UniTask<(string, string)> RequestIntegrityToken() ...
Toan Pham Duc's user avatar
2 votes
1 answer
116 views

What does this mean "Error: Upgrading from 1st Gen to 2nd Gen is not yet supported

What does this mean? Error: Upgrading from 1st Gen to 2nd Gen is not yet supported. See https://firebase.google.com/docs/functions/2nd-gen-upgrade before migrating to 2nd Gen. We'd like to be able ...
Ralph Yozzo's user avatar
  • 1,142
0 votes
0 answers
39 views

How to properly pass authentication to cloud functions when calling from chrome extension

This is cloud function I'm using to access Firestore: const functions = require("firebase-functions"); const admin = require("firebase-admin"); admin.initializeApp(); exports....
Muhammad Usman's user avatar
0 votes
1 answer
36 views

Schedule weekly data import to AlloyDB with CSV stored in GCS bucket

We have a requirement where we have CSV files copied by an application on every week into GCS bucket. We want to import this CSV data to AlloyDB Postgres database. This process should run whenever the ...
Coolbreeze's user avatar
-1 votes
1 answer
86 views

PERMISSION_DENIED Error When Creating a Queue with Google Cloud Tasks

I'm developing a Node.js application and trying to create a queue using Google Cloud Tasks, but I encounter the following error: Error: 7 PERMISSION_DENIED: The principal (user or service account) ...
rafik's user avatar
  • 67
0 votes
0 answers
65 views

gcloud functions call my-cf-gen-2 --data my-data or --cloud-event my-data is not working anymore with gen2 CF. How my-data should be constructed?

I created a Cloud Function gen2 using the code from the documentation https://cloud.google.com/functions/docs/running/direct https://cloud.google.com/functions/docs/tutorials/pubsub https://cloud....
Dr. Fabien Tarrade's user avatar
2 votes
1 answer
53 views

Why does Google Pub/Sub deliver messages with the same orderingKey in parallel before calling ack()?

I am working with Google Cloud Pub/Sub, and I am trying to ensure that messages with the same orderingKey are processed in order, as stated in the official documentation. However, I notice that ...
rafik's user avatar
  • 67
2 votes
2 answers
84 views

firebase-functions has no exported member 'auth' [duplicate]

This piece of code is watching for the user auth event: export const onUserAuthenticated = auth.user().onCreate(async (userRecord) => { const adminFirestore = getFirestore(); ... package.json &...
pax's user avatar
  • 1,915
0 votes
1 answer
64 views

Firebase Optimistic Locking Duplicate Processing

I have two Firebase functions that run hourly and process the same list of users. They share a batch document(this.batchId: MM-dd-yyyy-HH so it's unique for each hour) and use transactions to ...
wipallen's user avatar
  • 154
0 votes
1 answer
60 views

Firebase Functions "TypeError: Cannot read properties of undefined (reading 'document')" Despite Correct Imports

I'm encountering a persistent "TypeError: Cannot read properties of undefined (reading 'document')" error when deploying my Firebase Cloud Functions, even though my import statements and ...
squarewatermeln's user avatar
0 votes
1 answer
16 views

MS Graph Subscriptions Webhooks to Node JS Google Cloud Functions

I am trying to connect MS Graph Subscriptions to a Google HTTP Cloud Function on Node.js. To establish the trust between the MS Graph subscription and the HTTP Cloud Function a token needs to be ...
Ben Schleef's user avatar
0 votes
0 answers
18 views

How to Use Cloud Functions with MethodChannel to Set Google API Key at Runtime in Flutter?

I’m trying to use Cloud Functions in combination with MethodChannel to set the Google API key at runtime in my Flutter app. However, I’m facing an issue because the flutter_google_maps package does ...
idriss askour's user avatar
0 votes
0 answers
47 views

Custom Font Not Applying in Puppeteer browser on Firebase Functions

I'm using puppeteer-core with chrome-aws-lambda in a Firebase Cloud Function to scrape a webpage and apply a custom font. However, despite injecting the @font-face rule via page.addStyleTag, the font ...
Alireza Navaie's user avatar
0 votes
1 answer
47 views

Match multiple collections in eventarc within the same firestore document path pattern

Based on this docs is it possible to match two different collections and trigger the same CF 2nd gen on doc creation for users/ and clients/ collections? I tried different approaches, but no luck: {...
Xao's user avatar
  • 601
0 votes
1 answer
34 views

Creating firebase user with authentication information from Salesforce

I have a scenario where I am doing OAuth2 authorization to Salesforce and I get in response access token, refresh token etc. I can of course use the access token to get the user info from Salesforce. ...
jani_r's user avatar
  • 721
0 votes
1 answer
32 views

Google "gcloud functions deploy" command gives error gcloud crashed (TypeError): expected string or bytes-like object, got 'NoneType'

I am trying to create cloud functions using my existing scripts I run commands as shown below to create a cloud function <my_function> "gcloud functions deploy <my_function> --no-gen2 ...
Yogesh Devi's user avatar
0 votes
0 answers
39 views

FirebaseError: Could not detect runtime for functions

I'm trying to deploy a Vite+React+SSR app to Firebase, but Firebase won't recognize the runtime for my server script. I've created a file – server/index.js – running Express.js for SSR rendering of ...
Johan Martin Aarstein's user avatar
4 votes
1 answer
149 views

How can I use octokit with commonJs

I am confused with how octokit is using imports. How can I use commonJs and not set the module and module resolution to Node16. If I import the App like: import {App} from "@octokit/app"; I ...
Andrew Mainella's user avatar
0 votes
1 answer
66 views

ImportErrorlibsqlite3.so.0 while deploying a cloud function

I'm trying to deply a cloud function, using python, the code works locally fine, and the cloud build job complete successfuly, however, the cloud function is not working, I get this error : Revision ...
aName's user avatar
  • 3,063
0 votes
0 answers
19 views

beforeSignIn evenType trigger support on Firebase Extension

I'm trying to create a Firebase extension with a beforeUserSignedIn eventType trigger. the extension should add claims to the user on sign-in event. So far, I haven't found a way to do this. I've ...
kukula's user avatar
  • 1
0 votes
1 answer
86 views

Unhandled error TypeError: handler is not a function Firebase functions

I am trying to add poke notifications on my app. And i am stuck to send notifications with firebase functions and message.I deployed my functions to firebase with firebase deploy --only functions. And ...
Yasin G.'s user avatar
0 votes
0 answers
54 views

While using Firebase emulator, FireStore transaction triggers cloud function (onDocumentUpdated) when it is not supposed to

In my project, I am using FireStore, Cloud Functions, and Firebase emulator in the backend while using Flutter in the backend. I have a transaction that reads a profile document and then uses the ...
Aimn Blbol's user avatar
  • 1,285
0 votes
0 answers
35 views

Firestore return 2 collection event instead the one specified in the OnDocumentCreated function

I have a structure with 2 collections course and partial_ingredients. I deployed the function that when a new document is created in the course collection, it will take the partial information and do ...
user2996767's user avatar
0 votes
2 answers
37 views

Defining memory for single firebase functions

For firebase triggered functions (for instance @on_document_created), how do I specify the memory assigned to single functions? The firebase.json file does not change a thing, all functions are at 256 ...
Raul Ponzheimer's user avatar

1
2 3 4 5
371