You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a bug or not a feature, but using the FirestoreAdminClient with the emulator does not work 😅
Environment details
OS type and version: MacOS 14.5 with Docker 26.1.4, Compose v2.27.1-desktop.1, Docker Desktop 4.31.0
Python version: Python 3.11.9
pip version: pip 24.0 from /usr/local/lib/python3.11/site-packages/pip (python 3.11)
google-cloud-firestore version: 2.17.0
Steps to reproduce
Set FIRESTORE_EMULATOR_HOST
Use FirestoreAdminClient instance
Code example
FIRESTORE_EMULATOR_HOST=0.0.0.0:8080
load_dotenv()
print(os.getenv("FIRESTORE_EMULATOR_HOST")) # Will print `0.0.0.0:8080`admin_client=FirestoreAdminClient()
request=firestore_admin_v1.types.ListDatabasesRequest(
parent=f"projects/test-project",
)
client.list_databases(request=request) # This should not matter since the emulator only supports one project AFAIK
Stack trace
google.api_core.exceptions.PermissionDenied: 403 Cloud Firestore API has not been used in project test-project before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firestore.googleapis.com/overview?project=test-project then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
The text was updated successfully, but these errors were encountered:
Hi,
I'm not sure if this is a bug or not a feature, but using the
FirestoreAdminClient
with the emulator does not work 😅Environment details
Python 3.11.9
pip 24.0 from /usr/local/lib/python3.11/site-packages/pip (python 3.11)
google-cloud-firestore
version:2.17.0
Steps to reproduce
FIRESTORE_EMULATOR_HOST
FirestoreAdminClient
instanceCode example
Stack trace
The text was updated successfully, but these errors were encountered: