2,357 questions
0
votes
1
answer
85
views
Firestore in MongoDB compatibility mode gives error: Firestore API data access is disabled
Using Firestore SDK for NodeJS:
initializeApp();
const db = getFirestore("db-name");
.....
const ref = db.doc(`${firestoreCollectionUsers}/${data.auth.uid}`);
const doc = await ref.get();
...
-1
votes
2
answers
147
views
Is it "expensive" to check if a user exists in Firebase, every call?
I have a Laravel backend that I'm using for my Flutter app on android and iOS. I'm using Firebase for auth, and the token lives for about an hour.
The problem I have right now is that you need to be ...
1
vote
1
answer
173
views
Firebase Cloud Function fails to send notifications in flutter App - UNAUTHENTICATED
I have setup my cloud function to send notifications to my app. However, I stuck on an issue that returns the error below:
Failed to send message to dkmC6rNuCE...: Request is missing required
...
0
votes
0
answers
90
views
.NET Firebase Send Push Notification Error
Sending messages through FCM was working yesterday, but today I'm getting this error:
Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid ...
1
vote
0
answers
80
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 = ...
0
votes
0
answers
79
views
BigQuery shows only MESSAGE_ACCEPTED (no MESSAGE_DELIVERED) for Admin SDK–sent iOS notifications
We use the Firebase Admin Java SDK to send push notifications to iOS devices.
Messages appear in the BigQuery firebase_messaging export with message_status = MESSAGE_ACCEPTED, but never progress to ...
1
vote
1
answer
120
views
Firebase Admin SDK db object is invalid in Vercel API Route ("Expected first argument to collection...")
I have a Next.js application on Vercel. My API route fails when calling Firestore's doc() function, but only when deployed to Vercel or when running the production build locally. The dev server (npm ...
0
votes
0
answers
100
views
Problems with Oauth2 authentication in Firebase Console
I know nothing about code. I have been using the Firebase Console AI to help me build a website. I'm amazed it's working out to be honest, but I have hit a wall. For reasons specific to the app I am ...
5
votes
2
answers
196
views
Firebase Cloud Functions return "internal" error with no logs after moving project in React Native
I have a React Native project using Firebase, and I’m facing an issue with Google Cloud Functions.
After moving my code to a new React Native project, every Cloud Function call returns an "...
0
votes
0
answers
71
views
Firebase storage image urls keep returning access denied response
I have a small app where I am using firebase functions to upload an image into firebase storage.
Once done, I store this image url against an object in firebase db and then reuse this image in the app ...
0
votes
1
answer
114
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 ...
2
votes
1
answer
81
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, ...
0
votes
1
answer
71
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('...
1
vote
0
answers
191
views
Permission 'cloudmessaging.messages.create' denied on resource '//cloudresourcemanager.googleapis.com/projects/'
When I run the following simple push notification sending code.
import firebase_admin
from firebase_admin import credentials, messaging
cred = credentials.Certificate("/xxx/demo.json")
...
0
votes
1
answer
109
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 ...