Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

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 ...
Marco's user avatar
  • 31
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 ...
M.Ismail's user avatar
0 votes
1 answer
41 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: ...
Shamil Jamion's user avatar
0 votes
2 answers
267 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 ...
Fabio Moggi's user avatar
3 votes
2 answers
1k views

Firebase Functions "cannot determine backend specification"

I started intermittently receiving this error ⬢ functions: Failed to load function definition from source: FirebaseError: User code failed to load. Cannot determine backend specification when ...
cmjordan's user avatar
  • 174
0 votes
1 answer
127 views

Firebase functions emulator get actor user information

I need to construct specific linked documents when Firestore object is created, and I need to know who created the specific document. Based on documentation I should be able to use ...
pjotr_dolphin's user avatar
0 votes
0 answers
49 views

How to know that an object is a folder using Cloud Functions with Cloud Storage Trigger

I'd like to know how I could detect that an object (that was recently created) is of type "folder". Currently, I do this with this piece of code: export const resizeImage = onObjectFinalized(...
Lucas David Ferrero's user avatar
3 votes
1 answer
266 views

Firebase deploy - 'runtime' field not found in firebase.json or package.json

I'm trying to deploy my firebase functions from multiple different folders using firebase deploy. During deployment I get this error: Error: runtime field is required but was not found in firebase....
Franciszek Suszko's user avatar
0 votes
0 answers
150 views

Firebase Emulator Consistently Uses Random and Already Occupied Ports Despite Configuration

I'm facing an issue with Firebase local serving. It seems Firebase is using a different port to serve the server locally. The worst part is that it's a random port every time, and each time it's ...
Ramboski's user avatar
0 votes
1 answer
71 views

Firebase Function - conditionally deploy function based on logic using paramaterized config

We used to use firebase functions config with 1st gen functions like this code snippet below. Code like this used to work to only deploy that function when it was the production environment: const ...
chevin99's user avatar
  • 5,098
0 votes
1 answer
65 views

Firebase error when deploying cloud function: Cannot find module ...firebase-functions\lib\bin\firebase-functions.js'

I'm facing this issue and I don't know how to resolve it. I'd like to deploy a Firebase hosting app which use cloud functions from Firebase. so here is the logs firebase deploy --only functions:...
Gladitor's user avatar
  • 136
0 votes
0 answers
31 views

Firebase Function local debug doesn't work

I am currently trying to debug my firebase functions to trigger notifications and I found out that i can do that with firebase cli by using this command firebase emulators:start For some reason, ...
EnCoder2000's user avatar
0 votes
1 answer
55 views

Both of console.log and functions.logger(firebase-functions) don't show logs in Firebase pubsub(schedule) function

I'm new to Firebase and now I'm trying to make a schedule function. So I tried this one to see if the schedule function works. exports.testSchedule = functions.pubsub .schedule('*/1 * * * *') // ...
Benjamin's user avatar
1 vote
0 answers
67 views

Pub Sub Emulator Not downloading with actions/cache@v3 using node version 20

I have the following github action using node 20 name: develop-pr on: pull_request: branches: - develop env: CI: true FIREBASE_EMULATORS_PATH: $GITHUB_WORKSPACE/emulator-cache jobs: ...
Kingsley Simon's user avatar
0 votes
1 answer
468 views

Failed to fetch: copying .runtimeconfig.json to /workspace/.runtimeconfig.json: zip: not a valid zip file Firebase Functions

Recently when I tried to bump the Node Js version of my firebase functions, an error started to pop up while pushing the code to Firebase. It is the following error: Build failed: failed to Fetch: ...
Steve909's user avatar

15 30 50 per page
1
2 3 4 5
11