Skip to main content
  1. About
  2. For Teams

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
46 views

Getting Firebase Auth custom claims in SSR application server-side

I want to get the custom claims for a user in a react-router app on the loader/action that run on the server. To do that, I am calling the User's method getIdTokenResult(false): const authIdToken = ...
jigjig's user avatar
  • 11
0 votes
1 answer
89 views

Cannot read properties of undefined (reading 'cloudStorageURI') Generation 2 Google Cloud Storage Function

I am migrating a generation 1 node.js google cloud functions to generation 2 cloud run. It uses a onDocumentCreated function to create and save a file to cloud storage built from a collection of data ...
Steve Klock's user avatar
2 votes
1 answer
71 views

Firebase Cloud Functions: Document deletion not working properly and execution timing issues [closed]

I have two Firebase Cloud Functions with onDocumentCreated triggers. The issue is that when my delete function tries to delete a document that doesn't exist, it somehow triggers the checker function, ...
HouseOfCode's user avatar
1 vote
1 answer
62 views

firebase function fails to send push notification with socket disconnect

i am trying to send push notification like below: const { getFirestore } = require('firebase-admin/firestore'); const { initializeApp } = require('firebase-admin/app'); const { https } = require('...
Moblize IT's user avatar
  • 1,338
0 votes
1 answer
91 views

Firestore runTransaction takes multiple minutes

Firestore transaction is taking 2 minutes consistently. So my 1 cloud function is taking several minutes to execute. I just changed it all without transactions, and it is executed within seconds. I am ...
coolcool1994's user avatar
  • 3,800
0 votes
0 answers
33 views

Await set() operation on firebase RTDB hangs on `Buffering put:`

I am trying to put an object into my RTDB instance at the position rooms/${roomID}. I am running the following code, using the firebase admin API for node.js, but the await ref.child(roomID).set(data) ...
Greg Schoppe's user avatar
1 vote
0 answers
529 views

Firebase Cloud Function fails to send FCM with 404 Not Found error (GSE default error)

Hello Stack Overflow community, I am experiencing a persistent and puzzling issue with a Firebase Cloud Function (Node.js 22, 2nd Gen) that fails to send Firebase Cloud Messages (FCM) to a topic. The ...
Dexi Extrem's user avatar
0 votes
1 answer
679 views

Can't access Firestore data - alway return error 5 NOT_FOUND

I'm trying to access Firestore collection from NodeJS. The database is not the default one but is gymapp-data and project is gymapp-xxxxx. No security rules actived: I'm using the service account ...
loreeemartiii's user avatar
0 votes
0 answers
52 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
1 vote
1 answer
2k views

Firebase messaging().sendMulticast(...) // <--- sendMulticast does not exist on type Messaging

Recently, I've been working on a new feature for my project. But I encountered lot of issues with the back-end while implementing the feature. // Use messaging() directly from firebase-admin ...
ShibaDev's user avatar
0 votes
1 answer
103 views

SSR Auth through FirebaseServerApp fails when using Website restrictions on Firebase API keys

I am trying to get server-rendered data containing user information. I am using a service worker to attach an "Authorization" header including the Firebase Auth idToken as described in ...
samurai jack's user avatar
6 votes
1 answer
270 views

Firebase stuck in ACCESS_TOKEN_EXPIRED even though key is new

Up until recently I was able to run queries with the Firebase SDK using Node.js. Now I am getting a message that ACCESS_TOKEN_EXPIRED but I created a new key and the expiration is never. If I see in ...
lesolorzanov's user avatar
  • 3,654
0 votes
0 answers
53 views

Error trying to verify token generated by Firebase ADMIN SDK

I'm trying to verify a token generated by Firebase ADMIN. Here's the flow: A function in Firebase ADMIN is called. const additionalClaims = { veiculoId, sinistroId }; const token = await getAuth()....
ridermansb's user avatar
  • 11.1k
1 vote
0 answers
219 views

Error: Failed to load external module firebase-admin/firestore: Error: Cannot find module '@opentelemetry/api'

I'm encountering an issue when trying to use firebase-admin with Firestore in my project. Despite having both firebase and firebase-admin installed via npm, I'm seeing the following error when running ...
Zuhayr's user avatar
  • 11
3 votes
1 answer
193 views

Where does Firebase Admin SDK / Firestore pick up its project ID from, if not specified?

I'm trying to debug why writes to the local Firestore emulator from a Node.js script on my laptop aren't visible in the emulator GUI, and why the Node.js script gets different data from what I see in ...
Dan Dascalescu's user avatar

15 30 50 per page
1
2 3 4 5
57
Morty Proxy This is a proxified and sanitized view of the page, visit original site.