All Questions
161 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 ...
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 ...
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:
...
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 ...
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 ...
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 ...
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(...
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....
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 ...
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 ...
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:...
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, ...
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 * * * *') // ...
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:
...
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: ...