Skip to main content

All Questions

1 vote
0 answers
20 views

How to configure my firebase function runtime options during deployment?

I am trying to deploy a python firebase function that uses assertions. I want to disable these assertions in productions using "PYTHONOPTIMIZE": "1" or -o. Is there a way to ...
Moaz Eldefrawy's user avatar
0 votes
1 answer
61 views

How to delete a key:value pair from Firebase map?

I have some code for managing a friend system using Firebase. The issue I am having is when a user accepts a friend request the request can be deleted. So this involves adding user1 to user2's friends ...
Turner's user avatar
  • 15
0 votes
1 answer
37 views

How to save and display images from Firestore Database from Firebase

I'm writing an application for my IT studies in Python with Flask. I use Firestore Database as a database. Everything is alright, but I wonder if it is possible to save a photo to a given collection ...
Stynowsky's user avatar
0 votes
1 answer
172 views

Schedule Firebase Functions in Python

I'm trying to schedule this function to run every week on Monday at 00:05 AM. But it doesn't run at that time. Using @scheduler_fn.on_schedule has no effect on my function. @https_fn.on_request() @...
Cosmin Mihu's user avatar
0 votes
1 answer
134 views

Firebase Cloud Function using Event for document change AttributeError: 'Event' object has no attribute 'after'

I deployed the following Python Firebase cloud function that's supposed to be triggered on change to document from Collection Appointments, then send an FCM accordingly to associated user. # The Cloud ...
Tareq Ewaida's user avatar
0 votes
1 answer
72 views

Firebase: maintain user lookup table in GCP

I created my first web app using Firebase and implemented user auth using FirebaseUI. In my Firebase console, I can see the Users table in the Authentication tab being created with a unique Identifier ...
scalar_boson's user avatar
0 votes
1 answer
68 views

Python firestore does not recognize set function on subcollection

I have a discord bot that is connected to Firebase Firestore. I can get/set data on collections and documents but can't when I try to set on a subcollections. Here's part of my code: import discord ...
Efren Pineda's user avatar
0 votes
0 answers
22 views

Trouble Triggering Firebase Function to Transfer Image to Google Cloud Bucket

I'd like to ask your advice. I am trying to add a trigger to a firebase function in Python that will respond to uploading a new image to the firebase storage bucket. The purpose of this function is to ...
Googelplex's user avatar
0 votes
1 answer
43 views

Firestore paginate document fields

This is my first time using Firestore. The project is written in Python. I've a collection let's say posts and then a document for each user that contains an array of his posts. Is there a way to ...
mohamed naser's user avatar
3 votes
2 answers
1k views

How can I open a specific database on Google Firestore in Python?

I am using Firebase and setting/retrieving documents from Firestore with this code: import firebase_admin from firebase_admin import credentials, firestore cred = credentials.ApplicationDefault() ...
jimbofreedman's user avatar
2 votes
0 answers
140 views

Openai python api and Firestore emulator not playing well together

wondering if anyone else has seen this bizarre behavior. The python script below is a simplified version of something that I'm deploying to Cloud Run. The emulator stuff is replaced by client = ...
Nathan Lloyd's user avatar
  • 1,951
1 vote
1 answer
40 views

How to order by getting data with Id to firestore in python

How to order by Firestore get data with id in Python? list(firestoreDb.collection(u'Messages').get()) this code is getting all data. How to use orderBy() in python, I can't find .get().orderBy() I use ...
Tuğberk Yıldırım's user avatar
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/...
Belen's user avatar
  • 61
3 votes
0 answers
1k views

How do I prevent Google Cloud Functions caching results to calls?

I have a simple flask app in a Google Cloud Function that returns different data based on the user's authorization, specified by a token in the header: @functions_framework.http def main(request): ...
Student's user avatar
  • 684
0 votes
1 answer
123 views

How to add GCP bucket to the Firestore with Python SDK?

I am trying to upload the file to the custom Google Cloud Storage bucket with a Flutter web app. final _storage = FirebaseStorage.instanceFor(bucket: bucketName); Reference documentRef = _storage.ref()...
Sergii's user avatar
  • 611

15 30 50 per page
1
2 3 4 5