All Questions
Tagged with google-cloud-functions firebase
11,608 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 ...
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 ...
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.&...
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, ...
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 ...
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 (...
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) ...
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 ...
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 ...
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 ...
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 &...
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-...
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 ...
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 ...
-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 - ...