Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(firebase): stop retrying Auth users sync when Firebase Auth isn't enabled (#85682)

Tom Owers5be90f2a98bd
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/firebase/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/firebase/source.py
index 4aae7b85d3ad..22bf5243badf 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/firebase/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/firebase/source.py
@@ -66,6 +66,9 @@ class FirebaseSource(ResumableSource[FirebaseSourceConfig, FirebaseResumeConfig]
"401 Client Error: Unauthorized": "Firebase rejected the access token. The service account key may have been revoked — please reconnect.",
"403 Client Error: Forbidden": "This service account cannot read the requested Firebase data. Grant it the Firebase Viewer, Cloud Datastore Viewer, or Firebase Realtime Database Viewer role.",
RESPONSE_TOO_LARGE_ERROR: "Firebase returned a page too large to process. Reduce the size of the documents in this collection or path, then re-run the sync.",
+ # Identity Toolkit's `accounts:batchGet` rejects every request this way when the project
+ # has no Firebase Authentication configuration at all — retrying can't create one.
+ "message=CONFIGURATION_NOT_FOUND": "This Firebase project doesn't have Firebase Authentication enabled, so PostHog can't read its Auth users. Enable Firebase Authentication in the Firebase console, or remove the Auth users table from this source.",
}
@property
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/firebase/tests/test_firebase_source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/firebase/tests/test_firebase_source.py
index 27d71cb6b1cc..e4428aacdfd7 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/firebase/tests/test_firebase_source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/firebase/tests/test_firebase_source.py
@@ -156,3 +156,4 @@ class TestFirebaseSource:
assert "error=invalid_grant" in errors
assert "403 Client Error: Forbidden" in errors
+ assert "message=CONFIGURATION_NOT_FOUND" in errors