1,085 questions
0
votes
1
answer
22
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
27
views
run firebase emulator in spring boot test
I need to migrate some documents from one collection to another. This migration runs when the application starts up. It checks if the migration is finished, if it's not, it will run it otherwise it ...
0
votes
0
answers
20
views
Firebase storage unit tests: Timeout when trying to upload files using emulator
When running the below test via npm test, I get the following output:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure ...
1
vote
0
answers
11
views
How to deploy to Firebase in non-interactive mode with safe defaults?
When deploying firestore and functions code with firebase-tools, there are three questions that can come up (I don't remember them literally):
The following functions exist in your project but are ...
0
votes
2
answers
74
views
+200
Firebase app hosting unable to retrieve secrets from cloud secret manager
I try to use cloud secret manager in combination with firebase app hosting, but app hosting can't fetch the keys from the secret manager when it's building.
My apphosting.yaml file looks like this:
...
0
votes
1
answer
37
views
Clear Firestore database after testing
I am running Android UI tests. I use a separate Firestore DB for testing. I want to delete all documents after a test finishes. This curl command works.
curl -v -X DELETE "http://127.0.0.1:8080/...
0
votes
1
answer
120
views
Getting PathNotFoundException: Cannot open file, path = 'flutter_app\android\build.gradle` after flutter 3.29.0 using firebase-cli
After upgrading to Flutter 3.29.0, Android build scripts have migrated to .kts files. When trying to connect my project to Firebase using the flutterfire CLI, I'm encountering a PathNotFoundException:
...
1
vote
0
answers
25
views
Firebase Realtime Database Emulator - Python Listener Not Triggering on Data Changes
I am running a Firebase Emulator with a Realtime Database and trying to create a listener in Python that detects changes inside the database.
My Code:
import os
import firebase_admin
from ...
0
votes
1
answer
51
views
Which permissions do I need to deploy a Firebase Function?
I'm implementing some changes to an old somebody's project and I need to deploy a firebase function since its backend it's all on Firebase.
The thing is that I've got the Cloud Functions Admin role, ...
0
votes
0
answers
37
views
How to deploy firebase auth emulator on EC2 instance
I am trying to run firebase auth emulator on local and its running fine on local but not run on EC2 instance and i am facing issues that are stated below
{
"projectId": "bubble-dev-...
1
vote
1
answer
39
views
How to use react-native-firebase auth emulation?
im using react-native-firebase v21.6.1 and im trying to start the auth service emulation. Ive gotten the firestore and functions emulation working.
firebase.json
"emulators": {
"...
0
votes
1
answer
59
views
Dealing with Firebase hosting issues
I have a flutter web app that I used firebase for its database, authentication and deployment, but whenever I deploy I only see this screen.
this is the firebase.json file
{
"database": {
...
0
votes
0
answers
39
views
FirebaseError: Could not detect runtime for functions
I'm trying to deploy a Vite+React+SSR app to Firebase, but Firebase won't recognize the runtime for my server script. I've created a file – server/index.js – running Express.js for SSR rendering of ...
0
votes
0
answers
54
views
While using Firebase emulator, FireStore transaction triggers cloud function (onDocumentUpdated) when it is not supposed to
In my project, I am using FireStore, Cloud Functions, and Firebase emulator in the backend while using Flutter in the backend. I have a transaction that reads a profile document and then uses the ...
0
votes
1
answer
49
views
firebase login fails to make request to https://auth.firebase.tools/attest
I'm running
firebase login
but it fails with
Error: Failed to make request to https://auth.firebase.tools/attest
What could be the issue?
I installed firebase with
npm install -g firebase-tools
0
votes
1
answer
56
views
Firebase Authentication Emulator in Flutter on Android: `Logging in as [email protected] with empty reCAPTCHA token`
I’m trying to use the Firebase Authentication Emulator with Flutter on Android, but I’m encountering an issue during signInWithEmailAndPassword. It logs the following message:
FirebaseAuth: Logging ...
0
votes
1
answer
41
views
Cloud Run service `app` does not exist in region `us-central1` in this project
I keep getting the following error when deploying to firebase.
firebase.json [
{
"config": {
"public": "static",
"ignore": [
"...
0
votes
1
answer
25
views
How can you kill all queued and running Firebase Emulator functions?
I'm working with Firebase Emulators to test production code locally. To do this I need to load state from a file into Firestore. This works fine, but I'm having an issue because I have listeners on ...
0
votes
0
answers
41
views
firebase/storage-resize-images fails to deploy after installation
After installing firebase/[email protected] via command line as:
firebase ext:install firebase/[email protected]
After this, I go through all the steps. As part of the logs ...
0
votes
1
answer
27
views
How to synchronize Python scripts and Espresso tests for E2E testing with Firebase Realtime Database?
I have developed an Android app that integrates with Firebase Firestore and Realtime Database. I now want to perform End-to-End (E2E) tests that involve Firebase.
Test Setup:
I am using Espresso for ...
1
vote
2
answers
32
views
Is using your production firebase object when using firebase emulators an acceptable practice? [closed]
I have initialised my firebase app as follows.
const PRODUCTION = false;
let firebaseConfig = {
apiKey,
...
};
// Initialize Firebase
// Check if any Firebase apps exist
const apps = getApps();
/...
1
vote
0
answers
58
views
Error: Could not find "dataconnect.yaml" in "C:\Users\..my_project\dataconnect"
I run in to this error while running firebase emulators:start
(node:8440) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --...
0
votes
1
answer
32
views
Avoiding duplicate data in a Realtime Database
In a realtime database (on Firebase), I have the following rules for the collection called Resource:
{
"rules": {
....
"Resource": {
".read": true,
...
0
votes
1
answer
30
views
Firebase Emulators: How to emulate specific functions in subfolders
I'm trying to emulate only specific Cloud Functions within my Firebase project. My functions are organized in subfolders within a "functions" directory.
My folder structure looks like this:
...
0
votes
1
answer
38
views
fluttterfire configure Failed to parse JSON response from Firebase CLI
I'm trying to connect my flutter application to firebase and I see that I can implement this by using the flutterfire CLI.
I started by installing firebase CLI by using:
npm install -g firebase-tools
...
2
votes
0
answers
28
views
running mocha in the context of a npm script works but running it directly from command line does not
So when I run npm run test_w_emulator or npm run test_w_pure
my mocha test completes properly
package.json
"scripts": {
"test_w_emulator": "sh ./test.sh",
"...
0
votes
0
answers
127
views
How to Fix Firebase Deploy Unexpected Error Occured?
firebase deploy --only hosting
=== Deploying to 'PROJECT'...
i deploying hosting
i hosting[PROJECT]: beginning deploy...
i hosting[PROJECT]: found 55 files in public
-
Error: An unexpected error ...
1
vote
1
answer
61
views
Local emulated Firestore returns empty DataSnapshot to Android emulator but works with Cloud Firestore
I'm trying to test my Android app, which uses data from Firebase Firestore. However, I have an issue when querying data using my local running Firebase Firestore Emulator and the Android Emulator.
...
0
votes
1
answer
122
views
Could not create or update Cloud Run service handlestripewebhook, Container Healthcheck failed
Trying to deploy firebase functions with a Stripe webhook with Svelte5. I set the secrets:
firebase functions:secrets:get STRIPE_SECRET_KEY
firebase functions:secrets:get STRIPE_WEBHOOK_SECRET
...
0
votes
1
answer
48
views
I cannot read from Firebase Realtime Database Emulator (but I can when using the production database)
I am a new Android developer and am using Firebase Emulator to test my project during development. My project uses both Firebase Auth and Firebase Realtime Database. When connected to the emulator, ...
0
votes
1
answer
47
views
How to access Firebase emulator from .NET app/integration tests
I have a docker hosted firebase emulator, accessible from localhost:4000
I can't figure how to access firebase emulator from dotnet app/integration tests (firebase-admin-dotnet nuget) outside of ...
0
votes
1
answer
19
views
how to add indexOn to realtime database emulators [duplicate]
I'm trying to add .indexOn to fireabase.json for using sort and filter on realtime database emulator. But no matter what I do same error, error code below, keep occuring.
InvalidArgumentError: Index ...
0
votes
1
answer
47
views
Getting Error when deploying python functions to firebase server
I am trying to upload my python server functions using
firebase deploy
When I run this command I get the following error:
Error: Failed to find location of Firebase Functions SDK. Did you forget to ...
1
vote
1
answer
17
views
flutter web make invalid path error when using realtime database emulator
I'm working with flutter and realtime database emulator.
When i try to read from database by using .get() following error occur.
Error: child failed: path argument was an invalid path = "http://...
2
votes
1
answer
46
views
How can I avoid a read error from the Cloud Storage emulator?
I have closed access for some rules, to authorise only Firebase Admin SDK from a Cloud Functions, to read or write a file in Cloud Storage.
storage.rules content:
rules_version = '2';
service ...
1
vote
1
answer
36
views
firebase.auth().useEmulator() takes a non-empty string URL
THE PROBLEM
When I run the command:
npx expo run:android
or
npx expo start --reset-cache
My Android Cellphone is connected on my USB port.
I get this error: firebase.auth().useEmulator() takes a non-...
0
votes
2
answers
244
views
Failed to parse JSON response from Firebase CLI. JSON response: FormatException: Unexpected end of input (at character 1)
I am trying to setup my firebase project with flutter app. I was already using flutter successfully with no problems and was using firebase before they added this CLI method.
I have successfully ...
1
vote
0
answers
21
views
Double Execution of Firebase Function in Emulator Environment
I've noticed that when running in the Firebase emulator environment, modifying the function and making a single GET request for the first time causes the function to execute twice:
@https_fn....
0
votes
2
answers
240
views
Can't init firebase cloud storage due to cloud resource location
I’m using Firebase emulators to develop and test Cloud Functions locally, and one of my use cases involves uploading a file to Cloud Storage. As part of this process, I initialize Firebase emulators ...
0
votes
1
answer
38
views
Flutter Firebase Notification Intigration - dart pub global activate flutter_cli fails
I want to integrate the Firebase Push Notification in my Flutter App.
flutter --version
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (7 ...
0
votes
1
answer
31
views
Using the Firebase CLI with a non-default DB
When using Firebase there is a CLI command to get the contents of some collection in a DB.
It goes like this:
firebase database:get /DBPath-tocollection --output myfile.json
and it works very well.
...
0
votes
0
answers
55
views
How can I fix "Invalid value at 'version.config.rewrites[0]" with Firebase hosting configuration?
Let me give you some context, I'm trying to change the redirection of a function that is in the US region to a European region in an Angular project. Previously, the configuration was like this in the ...
0
votes
0
answers
31
views
Firebase init, deploy no errors; but why the website not showing
I did npm npm run build, firebase init and firebase deploy on vscode.
(base) PS C:\xampp\htdocs\episode2> firebase deploy
=== Deploying to 'azlife-a8cb2'...
i deploying hosting
i hosting[azlife-...
1
vote
0
answers
36
views
Google Cloud Run Function v2 - erratic trigger [duplicate]
PLEASE NOTE: This question is related to my previous question (Deployment of Google Cloud Run Function v2 - trigger not invoked / run), but is regarding a different specific problem.
I am migrating my ...
0
votes
0
answers
22
views
firebase function unknown error occur on emulator
I was testing firebase function on firebase emulator and unknown error occured.
Function I was testing is simple example below.
@https_fn.on_request()
def test_n2(req: https_fn.Request) -> https_fn....
0
votes
1
answer
342
views
Deployment of Google Cloud Run Function v2 - trigger not invoked / run
I am migrating my Google Cloud Run Functions from v1 and Node 12 to v2 and Node 20.
So far I have upgraded onSchedule and onMessagePublished triggers with no problem.
When trying to deploy Realtime ...
0
votes
0
answers
25
views
Firebase function deploy fail after made multiple functions
When I try to deploy multiple functions, following error occur and don't have any clue to fix the issue.
Error: spawn "C:\Users\user\functions\first_update\venv\Scripts\activate.bat" ENOENT
...
2
votes
2
answers
51
views
How to update the rules of multiple RTDB instances using the firebase tools?
I would like to run firebase deploy --only database and it deploys the Firebase Real time database rules for each of my databases instances.
I would like the config of firebase.json / .firebaserc and ...
0
votes
2
answers
48
views
Firebase project deploying to old deleted project
I am trying to deploy a new firebase project (fit-prototype-v0 below), but it keeps deploying to an old project (fit-test-for-readme). I deleted the old project, and now get the error below. I'm ...
0
votes
0
answers
213
views
Fixing Error: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null) by double checking package name
I'm using Flutter for the front end and this error
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)
surfaced when I was trying to integrate the google sign ...