All Questions
10 questions
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 ...
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/...