All Questions
Tagged with google-cloud-firestore python
563
questions
0
votes
1
answer
27
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 ...
0
votes
1
answer
64
views
Firebase-admin sdk for Python raise error "StreamGenerator" is not iterable
Previously(a week ago) my Python code for communicating with Firestore works perfectly fine. But today I started working on it again, it raise error when iterating the collection.stream()
...
0
votes
1
answer
29
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 ...
0
votes
1
answer
38
views
Fixed windowing not producing synchronous output
I am using the Apache Beam Python SDK to create a Dataflow pipeline.
Steps:
ingest synchronous pubsub messages
window into 1 second windows with 600ms allowed latency and a 2 second processing ...
0
votes
0
answers
29
views
Gzip binary blob data from Firebase - convert in Python
I am using the Python client to query Firestore data, and the data is stored in a Gzip (compressed) format. I am not sure what the encoding is, but using Pako ungzip in Typescript and Base64 decoding ...
0
votes
0
answers
104
views
How to convert Json and Dict type data using Firestore trigger of Cloud function v2
I'm using Google Cloud functions v2 on Firestore created trigger
So This is default code
from cloudevents.http import CloudEvent
import functions_framework
from google.events.cloud import firestore
@...
1
vote
0
answers
66
views
How can I make requests require authentication?
I'm trying to make an authentication system for my server for a game. I want certain routes to require you to be authenticated to interact with them. I would like to use Firebase authentication for ...
1
vote
0
answers
18
views
Read Image from firestore document in google cloud function (python) [closed]
I am creating a Google Cloud Function, using Python, to perform some OCR on an image uploaded by a user into a firestore collection (using flutterflow app). The text detected is then appended to the ...
0
votes
0
answers
100
views
How to fix grpc._channel._MultiThreadedRendezvous fails; StatusCode.UNAVAILABLE; Query timed out
I have a Python function that takes a cloud Firestore collection name as an arg and streams thru every document in that collection to check for errors.
In simplified form, it essentially looks ...
0
votes
1
answer
38
views
firebase functions (python) - how do I define a trigger function that adds a specific field to a new created document
I have a flutter flow app that authenticates users using google provider.
I am trying to set a firebase trigger function that will add the boolean field "isMoreInfoRequired",let it equal to ...
0
votes
1
answer
20
views
Secure Firestore credentials for a desktop app
I am creating a desktop application using python and firebase. In this app I wanted to use Firestore Database and store all the data, but, that is possible by giving the path to the privatekey.json ...
3
votes
0
answers
68
views
How to write to a firestore db other than (default) in a python cloud function
I use firebase cloud functions for a small project of mine.
I have set up everything like so and it works fine:
cred = credentials.Certificate("db_key.json")
app = initialize_app(cred)
db = ...
0
votes
0
answers
22
views
Unable to install python dependencies for Firebase CLI
Helllo, I have been able to access Firestore as well as deploy code for firestore and hosting, but I am unable to do firebase init functions nor firebase deploy --only functions.
Currently these are ...
0
votes
1
answer
51
views
Get url after uploading file to Firebase Storage
I am developing a Flutter application that reads from a Firestore database and Firebase Storage. The Firebase Storage read rules are set to allow only authenticated users. I also have a Python script ...
0
votes
1
answer
42
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
...