Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

flutter fcm integration for scheduled notifications

I have a flutter app with recipes, and a week plan for each user. Basically when the user completes his plan for let's say breakfast-launch-dinner, I want to send him a push notification with ...
Γιωργος Ρετσ's user avatar
0 votes
1 answer
51 views

Firebase Cloud Function Not Returning Response (Even After Successful Data Extraction)

Problem: I am building a Firebase Cloud Function in Python to extract text and links from a PDF file hosted at a URL. The function works correctly in extracting the data (I can see it printed in the ...
sona ali's user avatar
0 votes
0 answers
27 views

Unable to run Video Intelligence AI due to Message Serialization Error

i'm trying to run Google Cloud Video Intelligence through cloud functions locally using firebase emulator. This function hasn't been deployed to production and i get an error. I'm following the ...
Coolkid's user avatar
  • 569
0 votes
0 answers
19 views

Cannot see the logs from Firebase Database in Google Cloud Run to send push notification

I am trying to use Firebase logs. I am able to add new records into my Firebase Realtime Database Chat entity. The problem is I cannot see any logs or errors when browsing them at Google Cloud Log ...
user7289922's user avatar
0 votes
0 answers
53 views

Firebase functions V2: ; SyntaxError: Cannot use import statement outside a module at wrapSafe

I am trying to send notification to device when I receive message in chat in my app. At the moment I just want to read snapshot contents, but when trying to deploy, I am hit with an error: Firebase ...
user7289922's user avatar
1 vote
0 answers
71 views

Why I get connection timeout to Cloud SQL in GCP Cloud Functions Gen 2 randomly on some requests?

I have several Google Cloud Functions (Gen 2) functions that access a PostgreSQL database hosted in Cloud SQL, using node-postgres (pg). These functions can be called multiple times by the same ...
Matheus Ribeiro's user avatar
0 votes
1 answer
18 views

Firebase - user customClaims - admin

im trying to find a way how to add to user Admin role via custom claims. I tried to do it with user creation cloud function, and onCall function, I dont know if claims are assigned, or not, or how to ...
Dima Malko's user avatar
1 vote
0 answers
48 views

why isn't my GCS-triggered Python Gen2 Cloud Function executing/logging despite Editor role?

I am trying to trigger a simple Python 3.11 Gen2 Cloud Function (parse-ticket-v2) in project loadsnap-prod (ID: 266229951076, region us-central1) when a file is finalized in the GCS bucket gs://...
Brian Murphy's user avatar
0 votes
0 answers
53 views

Do Firestore Queries save time? [closed]

I'm creating an ecommerce app that has 100+ products. I want to show only 4 featured products on the homescreen. Now, my question is, whether should I create a separate collection for featured ...
Aabis Ahmed Hassan's user avatar
0 votes
1 answer
44 views

How to generate the Endpoint URL to cloud functions for push subscriptions on Google Pub/Sub?

I have a Cloud Function (v1) that is set to trigger every time a message is received in a specific topic. This part of the configuration is done correctly (since I've followed previous working cloud ...
marianod323's user avatar
0 votes
2 answers
47 views

FCM push notification error: code: 'messaging/invalid-payload

I'm trying to implement FCM push notifications in a react.js app using Firebase Realtime Database Cloud functions, for the first time and stuck at this: error: Message must be a non-null object I've ...
Iam Wayne's user avatar
  • 561
0 votes
1 answer
42 views

Imported modules becoming undefined in TypeScript Firebase Functions

I'm using Firebase Functions in TS. When executing npm run-script build and starting the emulator, here's what it throws: TypeError: Cannot read properties of undefined (reading 'user') at Object.&...
starleaf1's user avatar
  • 2,894
0 votes
1 answer
33 views

Firebase v2 function loses admin rights

I have a firebase functions file that, in v1, worked perfectly. Upgrading to v2, I use: const functions = require("firebase-functions/v2"); const admin = require("firebase-admin"); ...
Andrew-NZ's user avatar
  • 501
0 votes
1 answer
49 views

Google Calendar Push Notification - Body is empty?

I have setup a push notification for calendar events like so: const response = await calendar.events.watch({ auth: authClient, calendarId: 'primary', requestBody: { id: 'calendar-...
corycorycory's user avatar
  • 1,656
0 votes
1 answer
30 views

The --update-labels argument of gcloud functions deploy does absolutely nothing

Maybe this is a bug because its suppose to work: https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--update-labels This command completes without issue: gcloud alpha functions deploy <...
red888's user avatar
  • 31.9k
0 votes
0 answers
26 views

Unable to get the context.uid from the Flutter client side to reach the Cloud Functions

Problem The getPotentialMatches Cloud Function in my Firebase project fails with the error User must be authenticated because context.auth is consistently undefined. The client sends a valid token, ...
Zakaria El Dandachi's user avatar
0 votes
1 answer
37 views

GCP Cloud Functions - How to import local scripts outside of cloud function? How to structure projects that use a global config.py file?

I have one giant repo folder which contains many more sub-repos, and each sub-repo contains multiple cloud functions, i.e. |-repo_master |-repo_a |-cloud_function_a |-....
Jack Kirby's user avatar
1 vote
0 answers
68 views

Flutter Firebase Messaging not receiving messages from backend on iOS (works on Android and with Firebase Console)

I'm having an issue with Firebase Cloud Messaging in my Flutter app where: On iOS: Messages only work when sent via Firebase Console, but not when sent from my backend On Android: Messages ...
Dali Hmida's user avatar
0 votes
2 answers
33 views

Why are renames of (non-empty) folders not triggering Google Cloud Storage events?

I'm subscribing to Google Cloud Storage events with Firebase Functions (2nd gen) on the Node.js runtime, as described here. My bucket has Hierarchical Namespace enabled. For most operations, I ...
mgw's user avatar
  • 260
0 votes
1 answer
55 views

Can I add extra build steps when deploy cloud functions on GCP?

I am using terraform to deploy a python cloud function, similar to the official example, things are working as expected but now I want to use protobuf, which requires extra compile step, I know cloud ...
watashiSHUN's user avatar
  • 10.6k
0 votes
0 answers
27 views

Google Chat CardV2 with 'buttons' widget results in "Bot not responding" / API 400 Error

I'm developing a Google Chat bot using Node.js on Google Cloud Functions. I'm trying to respond to a slash command with an interactive card (CardV2) containing buttons. What Works: My function ...
David Kirschner's user avatar
0 votes
1 answer
59 views

"Error: There was an error deploying functions" with no other info

I'm getting the error "There was an error deploying functions" when trying to deploy a newly created function. There is no other error info in the output: i functions: updating Node.js 22 (...
aldel's user avatar
  • 6,788
0 votes
0 answers
32 views

Python Google Cloud Function issue with "requested_run_time"

I have a process in GCP that can be summarized as: a log sink checks the logs for a specific log (daily GA4 table is added to the dataset) when sink gets the log, a pub/sub message is sent to trigger ...
Merijn Dimmendaal's user avatar
0 votes
0 answers
50 views

Converting Firebase Timestamp to JS Date with correct timezone

I have some data in Firestore with a Timestamp in my local timezone (Europe/Copenhagen) and because we are in summer that is UTC+2 right now. I also have some ints in the Firestore collection to save ...
Neigaard's user avatar
  • 4,084
0 votes
1 answer
47 views

Declaring Firebase auth trigger error: "TypeError: Cannot read properties of undefined (reading 'user')"

I am trying to create a firebase function that essentially listens to an event where a user created using the firebase authentication and then it creates a new record in the real time database where ...
Yanir Aton's user avatar
0 votes
1 answer
34 views

unable to get document data of onDocumentCreated

i'm trying to convert my firebase cloud functions from 1st Gen to 2nd Gen and i can't get the data out of the snapshot typically referred to as event. There must be a simple fix that i'm missing. In ...
Coolkid's user avatar
  • 569
0 votes
1 answer
79 views

Firebase App Hosting deployment throwing error in Firebase Functions - why? [closed]

I'm doing Create Rollout in firebase app hosting with nextjs. It's failing because of a supposed error in firebase functions. Type error: Cannot find module 'firebase-functions/v2/scheduler' or its ...
esafresa's user avatar
  • 600
1 vote
1 answer
54 views

Firebase Cloud Function - Can't find the storage bucket region

Trying to deploy my firebase cloud function and getting the following error: Error: Can't find the storage bucket region The function I'm trying to deploy looks like: import {initializeApp} from &...
Ayrix's user avatar
  • 523
0 votes
2 answers
69 views

Firebase Functions v2 onCall returns 401 Unauthorized despite "auth: VALID" in logs

I'm encountering a persistent issue with Firebase Callable Functions (v2, Node.js 20 runtime) where calls from my React frontend consistently fail with a 401 Unauthorized error, even though the server-...
Mars M's user avatar
  • 1
0 votes
2 answers
85 views

Firebase Cloud Functions gen2 upgrade increased server costs

A few weeks ago I was forced to upgrade my Cloud Functions to gen2 and my node.js from version 16 to 22. After I made this update my firebase costs ballooned overnight by 4x. I have had to shut down ...
Edmund Rojas's user avatar
  • 6,616
2 votes
1 answer
52 views

Firebase Cloud Functions Deployment Fails: " <number>[email protected] not found" after Default Service Account Deletion

Problem: I'm encountering an error when deploying Firebase Cloud Functions: Error: <number>[email protected] not found This error occurred after the default Compute Engine ...
Ibrahim Itani's user avatar
-2 votes
0 answers
21 views

How to run firebase cloud trigger functions locally for testing? [duplicate]

I have trigger functions in my project, but when I change in that then I need to deploy every time. I want to test it locally without deploying it. Is there any way for it? Ex: OnUserCreated - ...
Chirag Parmar's user avatar
0 votes
1 answer
43 views

What does a triggering event for testing a (1st gen) Firestore triggered Cloud Function look like?

I have a (1st gen) Cloud (Run) Function that is triggered by a document being created in Firestore. I want to test this function with the TESTING functionality that is built into the Google Cloud ...
Frank van Puffelen's user avatar
0 votes
3 answers
75 views

401 unauthorized response when calling a Cloud Function using google-auth-library

I'm calling a private http Cloud Function using the google-auth-library in Node.js. This works locally both when authenticated as myself and when impersonating the Cloud Run service account. However, ...
Matt Kocak's user avatar
0 votes
0 answers
34 views

FIREBASE FATAL ERROR: Database initialized multiple times. Please make sure the format of the database URL matches with each database() call

I've written this js code for a firebase cloud function for a realtime database: const { onValueUpdated } = require("firebase-functions/v2/database"); const admin = require("firebase-...
Mihai Condrici's user avatar
0 votes
0 answers
46 views

CORS Issues with GTM Server-Side Container on Cloud Run – Help Needed

I’m experiencing persistent CORS issues when trying to send events from my web container (GTM Web) to my GTM Server-Side container deployed on Cloud Run. Despite my best efforts and various tests, I ...
Carlotta Zanotto's user avatar
0 votes
0 answers
19 views

Deploying Firebase user().onCreate() Function, undefined 'user' error [duplicate]

This is my index.js file: const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(); exports.createUser = functions.auth.user().onCreate((user) =...
Caden Wright's user avatar
0 votes
1 answer
39 views

Firebase Functions, does waiting for external API to respond count towards billable CPU time?

Mobile app -----> Firebase Function | ------------------> External API | waiting... | CPU billed? | ...
Gazihan Alankus's user avatar
1 vote
0 answers
59 views

TypeError Cannot read properties of null (reading 'length') while deploying cloud functions [duplicate]

I try to deploy some cloud functions in typescript for a firebase project: import * as functions from "firebase-functions"; import * as admin from "firebase-admin"; import Stripe ...
Kantine's user avatar
  • 781
3 votes
0 answers
74 views

Error with Firebase deploy, service account format issue

Error Message [info] Functions deploy had errors with the following functions: addmessage(us-central1) [debug] [2025-03-27T22:03:14.260Z] Not printing URL for HTTPS function. Typically this means it ...
Marco's user avatar
  • 31
0 votes
1 answer
28 views

Google Purchase API call succeeded on local but fail on Firebase Functions

I want to verify Google IAP receipts using Firebase Functions, but the code that works successfully in local testing is throwing errors when deployed to Functions. Why is this happening when it's ...
normidar's user avatar
  • 569
0 votes
1 answer
33 views

Register Firebase Functions v2 by endpoint

I'm running Firebase Functions v2 with Express and I'm looking forward to understanding how I could register all endpoints so I can collect metrics independently. Hope I can get my self clear with the ...
guarinex's user avatar
  • 122
0 votes
1 answer
44 views

How to deploy a gen2 Google Cloud function that triggers on Auth events (e.g. user.create)

Using gen1 it looks like this gcloud functions deploy AuthUserCreate --runtime dotnet6 --no-gen2 --entry-point AuthUserHandler --trigger-event providers/firebase.auth/eventTypes/user.create but a) ....
Mark's user avatar
  • 570
0 votes
1 answer
46 views

How to use Expression in Firebase Trigger Functions

I want to create only one function to be triggered by some of my Collections, it looks like it's possible with the use of CEL braced expression or REGEX, however I failed to figure out the correct ...
Wisam Jbori's user avatar
0 votes
1 answer
91 views

How to get the URL of a Cloud Run Function from within a Cloud Run Function

I have a python cloud run function and I want to get the URL of another cloud run function programatically. I want to avoid hard coding the URL if possible. I need the URL so that I can create a task ...
yambo's user avatar
  • 1,860
0 votes
0 answers
45 views

Passing parameters to a cloud function in Flutter

I'm having an issue calling cloud functions through my flutter app. The function seems to be going through according to the logs, but the values I pass in through Flutter are not making it to the ...
Max's user avatar
  • 1
1 vote
0 answers
26 views

Parameters of a function wrongly transmitted to firebase functions

exports.createUserProfileManual = functions.https.onCall(async ( data, context) => { // Validate the data const {uid, email} = data; if (!uid || !email) { throw new functions.https....
Nuoxis's user avatar
  • 11
2 votes
1 answer
45 views

Incorrect argument error when trying to enqueue a task within a firebase function

I have a firebase function that attempts to enqueue a task with some data. Every time I call it I get the following two errors from the cloud run logs: requests.exceptions.HTTPError: 400 Client Error:...
yambo's user avatar
  • 1,860
0 votes
1 answer
44 views

Add AppCheck to Firebase Function

I'm developing a firebase function for an old ios app. It's working ok and I would like to add AppCheck to it, but I'm struggling with this. This is what I have now. I my podfile: pod '...
Wonton's user avatar
  • 1,143
1 vote
1 answer
46 views

Do firebase functions triggered when a document is created scale to thousands of documents being added to firestore simultaneously?

I have a Firestore database that I'll be adding ~10k documents to every hour. I need to run a function on each of those documents that makes an API call, gets some information, and updates said ...
yambo's user avatar
  • 1,860

1
2 3 4 5
372