-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Labels
api: firestoreIssues related to the googleapis/python-firestore API.Issues related to the googleapis/python-firestore API.externalThis issue is blocked on a bug with the actual product.This issue is blocked on a bug with the actual product.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
branching from #64 (comment)
Thank you @mr-bjerre
Really appreciate the new support of AsyncClient !
One issue though. It doesn't work with the firestore emulator. The following script raises and exception
TypeError: Unexpected type of call <class 'google.cloud.firestore_v1.types.firestore.CommitResponse'>Start the firestore emulator and run the script
import asyncio
from google.cloud.firestore import AsyncClient
import os
os.environ["FIRESTORE_EMULATOR_HOST"] = "localhost:8080"
client = AsyncClient()
async def save():
return (
await client.collection("test")
.document("test")
.set({"message": "Hello World!"})
)
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(save())The same issue goes for retrieving data.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: firestoreIssues related to the googleapis/python-firestore API.Issues related to the googleapis/python-firestore API.externalThis issue is blocked on a bug with the actual product.This issue is blocked on a bug with the actual product.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.