Skip to main content

All Questions

0 votes
0 answers
29 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
2 answers
37 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
36 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
0 answers
25 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
1 vote
0 answers
64 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
1 answer
55 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
41 views

Persistent 401 Unauthorized Error on Firebase Callable Function Despite Valid Client Authentication [closed]

Summary of Problem: I am experiencing a consistent 401 Unauthorized error (FirebaseError: The function must be called while authenticated.) when invoking a Firebase Callable Function (https.onCall) ...
Abbas Anwar's user avatar
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
33 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
  • 567
0 votes
1 answer
70 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
43 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
62 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
84 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
47 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

15 30 50 per page
1
2 3 4 5
774