Running Cloud Functions locally gives error "functions.config() is not available"

Cloud Functions for Firebase was just recently released and I am following the instructions on a fresh install. Here is the "Get Started" page. I have installed "npm install -g firebase-tools" and...

How to get Firebase Project Name or ID from Cloud Function

I am using Cloud Functions and want to get the project name from within one of my Javascript server files. I know that value is stored in the .firebaserc, but I don't think that file is available...

Permission problems for Firebase storage, can't download file from admin panel

I'm uploading files from my node application to firebase storage. I created new Service Account user with key. Uploading works perfectly, but I cant download any files from Firebase Admin panel....

Firebase: firebase.messaging() is not a function

I am trying to set up NodeJS Client Web App from FCM. I have setup firebase-admin on the server side. While setting up the client to access tokens I am getting a TypeError: firebase.messaging is...

Updating authorization header in websocket graphql

I am trying to implement authentication in Graphql using firebase and websockets (on react native). The client uses the firebase to authenticate and gets a token. It then sends the token to the...

firebase.auth is not a function

I am using Webpack with firebase and firebase-admin. To install firebase I ran npm install --save firebase I am importing firebase using, import * as firebase from 'firebase/app' import...

How do I switch to another serviceAccountKey.json via .firebaserc on Firebase Cloud Functions?

In my .firebaserc file, I provided two Firebase databases, one for dev and one for production: { "projects": { "default": "db-dev", "production": "db-prod" } } So when I'm deploying...

Firebase error: TOO_MANY_TRIGGERS

In our Firebase application there is a list with lots of items in Realtime Database. Every create, update and delete operation on single item is processed by Firebase Cloud Function with onWrite...

Firestore: get document back after adding it / updating it without additional network calls

Is it possible to get document back after adding it / updating it without additional network calls with Firestore, similar to MongoDB? I find it stupid to first make a call to add / update a...

SigningError with Firebase getSignedUrl()

I'm trying to use file.getSignedUrl() to get the download URL from Firebase Storage via Google Cloud Functions (Nodejs). I'm getting this error in the Cloud Functions console: { SigningError: A...

Firestore - Nested query

I'm really new to firebase and to be honest I find queries hard to write. I'm working on a script in python using firebase_admin and i'd like the query/answer to be in python code, but in any...

Typescript: compilation errors when updating Firebase function dependencies

I tried to update the dependencies of my Firebase functions project to use more recent versions of firebase-functions and firebase-admin, which in turn seemed to required more recent versions of...

Is there an upload limit on Firebase?

I can't seem to upload files more than 5mb in firebase storage using firebase function with busboy. the error returns: ResumableUploadError: A resumable upload could not be performed....

Fetch multiple users

I have a list (uid's) of users that is connected to a group. On one page I want to list all usernames and emails of the users in the list. What is the recommended way to fetch user data for each...

GatsbyJS with Firebase - WebpackError: ReferenceError: IDBIndex is not defined

I'm received error with gatsby develop. It's very similar to this one: https://github.com/firebase/firebase-js-sdk/issues/2222, but I'm received error with gatsby develop, not with gatsby build. I...

Firebase emulator return empty data whereas working fine after deploying

I have a written a very basic API which will return the services. I tried to run this API in emulator but it return the empty data { "status": "success", "statusCode": 200, "message":...

Is there a .get() in angular firestore?

I have seen there is a .valueChanges() and .snapshotChanges() which both listen to changes in the database but what if I want to retrieve the data just once? I noticed that adding .pipe(take(1))...

Unable to deploy a firebase cloud function due to permission error

I was trying to deploy my first firebase cloud function using firebase cli but I encountered an error instead : C:\Users\Anurag Tripathi\Desktop\firebasecloudfunction> firebase deploy --only...

Equivalent of batchImport for firebase-admin?

I am trying to move from the batchImport REST API (see answer to a previous question) found in the Instance ID endpoints to something similar in firebase-admin. The original idea was to use a...

Is Cloud Functions in Firebase Free or Not (Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan)

When i make my first deploy function I can't deploying Because I have Error Asks me to make Upgrade to my account to Blaze I need to Know Can i deploy Function when i use free account?? Output: i ...

Firebase error: Function failed on loading user code (node.js)

I am a relative noob with Firebase my first time using it and following along with a tutorial. The tutorial is a bit outdated and I have been fixing bugs as I have been going, but this one has got...

Flutter - Understanding Firebase Admin and how to get a user's information from email/uid/name

I'm making a little Snapchat clone, and a part of this app I'm trying to build is the ability to add a friend and start a conversation with them. I'm using Firebase to manage my users and I'm a...

Cannot find module 'firebase-admin' from 'index.cjs.js'

I was using @firebase/testing on Jest, but since it's deprecated and instructed to use new one, I decided to move to @firebase/rules-unit-testing. Here is the code where I just switched...

mocking admin.firestore() and admin.firestore.FieldValue.serverTimestamp()

I've been trying to mock admin.firestore.FieldValue.serverTimestamp(). However once I've mocked admin.firestore(), all the calls just hit that stub instead. So the error runnning the test is......

android project its getting some error related to ANDROID_SDK_HOME

(when i try to run the project )error is Build file 'C:\Users\jupun\Desktop\trid-7\codecanyon-22842942-trid-city-guide-android-native-with-admin-panel-firebase\Trid-Android-Package\Android...

RNGestureHandlerModule.attach Gesture Handler got 3 arguments, expected 2

I am building an app with React Native and have a login, Home, and member screen. when the user is admin I let him go to the home screen and when he is member I let him go to the member...

Can't handle errors when calling a Firebase Callable Function from Flutter

I am calling a Firebase Callable Function from Flutter and, although I have tried pretty much everything, I am still unable to handle errors thrown by the callable function. My Callable Function...

Firebase v9 and Nuxt 2.15.8 - SyntaxError: Cannot use import statement outside a module

I'm migrating my codebase to use the firebase version 9 SDK and started to get this error once I started using v9 firestore. I've already migrated the auth part of my and that works perfectly. I...

angular 13: Module not found: Error: Can't resolve 'rxjs/operators'

I have upgraded my angular to angular 13. when I run to build SSR it gives me following error. ERROR in ./node_modules/@angular/common/fesm2015/http.mjs 12:0-56 Module not found: Error: Can't...