All Questions
3,205 questions
0
votes
2
answers
63
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
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 - ...
3
votes
0
answers
69
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 ...
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 ...
0
votes
0
answers
44
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 ...
0
votes
1
answer
126
views
firebase.auth.user().onCreate won't deploy because of "TypeError: Cannot read properties of undefined (reading 'user')"
This is my code:
exports.createExample = functions.auth.user().onCreate((testUser) => {
functions.logger.log("inside the auth trigger ", testUser.uid);
return null;
});
This trigger ...
-1
votes
1
answer
53
views
Typescript types for onRequest() handler function in firebase functions
Where can I import the correct typescript types for the onRequest() handler function parameters request and response for firebase functions 2nd gen.
See this example:
export const sayHello = onRequest(...
0
votes
1
answer
66
views
What is the Response type of onRequest from firebase-functions/v2/https?
I am writing a simple code for Firebase Functions v2 in Node.js/TypeScript.
I am struggling with the type definition of Response.
According to documentation, HttpsFunction should be compatible to ...
0
votes
1
answer
37
views
Firebase Functions excessive latency
There is a significant performance degradation in a Firebase function I developed. This function handles payment reception via Stripe, generates a QR Code, and records data in multiple Firestore ...
0
votes
2
answers
84
views
(Tauri) Can't refresh access token in cloud function - invalid_grant
I'm experimenting with Google OAuth2.0 authorization and access token refreshing in a Firebase cloud function. In my Tauri desktop app I'm using Firebase's signInWithPopup() function in order to ...
1
vote
0
answers
23
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 (...
0
votes
1
answer
51
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 ...
0
votes
1
answer
66
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 ...
0
votes
1
answer
41
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 ...