All Questions
Tagged with firebase-tools python
23 questions
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
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 ...
1
vote
0
answers
73
views
Calling OpenAI hangs when using Firestore emulator
I am trying to build some code that will run as a Firebase function. The code will call OpenAI and then write the results to Firestore. However, when I try to run the code using the Firebase ...
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 ...
4
votes
0
answers
317
views
Attach debugger to Firebase Python Functions
I'm using the emulator to run cloud functions with Python. I'd like to attach a debugger using VS Code. This is easy when using Node, I just need to pass the --inspect-functions flag in when starting ...
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, ...
3
votes
0
answers
912
views
Error arising from Firebase Deploy command
So after some hiccups I managed to initiate the firebase cloud functions. I chose python as my language, but when I goto deploy this function. I get the following error:
Error: Failed to find ...
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 ...