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
Copy file name to clipboardExpand all lines: docs/integrations/firebase.md
+63Lines changed: 63 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -296,6 +296,7 @@ To enable billing on your Firebase project, open the Firebase Console. On the pr
296
296
<p></p>
297
297
298
298
299
+
## FAQs
299
300
<details>
300
301
<summary> Why do cloud function deployments fail? </summary>
301
302
@@ -324,4 +325,66 @@ Follow the steps below to fix the issue:
324
325
With the required permissions granted and correct configurations, you should now be able to deploy cloud functions from Dreamflow without any issues.
325
326
</p>
326
327
328
+
</details>
329
+
330
+
<details>
331
+
<summary>
332
+
Why do I see the error `[cloud_firestore/failed-precondition] The query requires an index`?
333
+
</summary>
334
+
335
+
<p>
336
+
This error occurs when Firestore needs a composite index to run your query, but the index has not been created yet.
337
+
338
+
When this error appears, it includes a link to the Firebase Console. Open that link, and it will redirect directly to the required index creation page in your Firestore project. Simply click **Save** to create the index.
339
+
340
+
After the index is built (this may take a few minutes), retry running your app. The query should now work without errors.
341
+
342
+
<div style={{
343
+
position: 'relative',
344
+
paddingBottom: 'calc(52.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
This error occurs when your app tries to read or write data in the Firestore Database without the correct security rules in place.
382
+
383
+
To fix this:
384
+
385
+
-**Redeploy rules:** Go to the Firebase panel in Dreamflow and [**redeploy**](#4-deploy-to-firebase) your Firestore security rules.
386
+
-**Update rules if needed:** If your current rules are incorrect (e.g., don’t match your app’s data model or intended access control), you need to update them. You can edit the rules manually in the `firestore.rules` file or update them using the Dreamflow Agent, and then [**redeploy**](#4-deploy-to-firebase) to apply the changes.
387
+
388
+
Once the correct rules are applied, the error should no longer appear when adding or retrieving data.
0 commit comments