All Questions
13 questions
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
58
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 ...
2
votes
0
answers
23
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
0
answers
23
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....
2
votes
0
answers
400
views
Error: User code failed to load. Cannot determine backend specification
I am using the Python sdk for firebase functions.
When I try to deploy functions by running the command firebase deploy I receive this Error
Error: User code failed to load. Cannot determine backend ...
2
votes
4
answers
2k
views
Firebase function deploy error - Failed to parse build specification
I'm encountering an issue while trying to deploy my Python-written Firebase function. The error message I'm receiving is as follows:
Error: Failed to parse build specification:
FirebaseError It ...
1
vote
1
answer
363
views
Firebase Emulator: Admin SDK not working for Firestore
I am running a FastAPI backend application that saves data on Firestore. I would like to test using a test database, and want to use the Firebase Emulator Suite. My code is as follows:
from google....
0
votes
1
answer
111
views
How do I get Firebase Functions Emulator working on GitHub?
I have a suite of Python integration tests that use the Firebase Emulator. In GitHub Actions, I have firebase emulators:start -P demo-test & sleep 10, followed by some initial tests to check the ...
3
votes
3
answers
2k
views
How to import a library in Python for Firebase functions?
Hello StackOverflow community. I am trying to deploy Firebase functions written in Python from a React-Native project.
My code snippet looks like this:
from firebase_functions import firestore_fn, ...
1
vote
2
answers
1k
views
Modules inside firebase cloud functions with python: ModuleNotFoundError: No module named 'src'
I have a directory structure like this:
python-functions/
--src
---- | api/
-------- | __init__.py
-------- | main.py
---- | __init__.py
---- | main.py
I'm trying to define all my functions in src/...
1
vote
1
answer
283
views
Flask API keeps returning 404 for GET requests after deploying locally using functions framework
I am new to flask and firebase, and I am trying to develop a social networking app. I am starting with the API for the profile creation, which works perfectly when run it. However, when I deploy it ...
2
votes
2
answers
365
views
Python3 firebase storage SDK cannot upload to Emulator
I have the following code snippet:
import firebase_admin
from firebase_admin import credentials
from firebase_admin import storage
from google.cloud import storage
class firebase_storage():
def ...
0
votes
1
answer
615
views
Run Python script with `firebase serve`
So I am working on a small project that includes Python and a Firebase realtime database.
By now I have everything pretty much finished and the only thing I want to add is that it is hosted by ...