failed-precondition

מה אומרת שגיאת Firebase ‏(שירותי Google) הזאת

איך זה מופיע

FirebaseError: [code=failed-precondition]: The query requires an index. You can create it here: https://console.firebase.google.com/...

מה זה אומר

Firestore rejected the operation because the system is not in the state the operation needs. A common case is a query that needs a composite index that does not exist yet.

הסיבה הנפוצה באפליקציה שנבנתה עם AI

AI-generated queries often combine a where filter with an orderBy or range filter on another field. That needs a composite index, which Firestore does not create for you.

בדקו את זה קודם

Open the link in the full error message, which fills in the missing index in the Firebase console, and check its fields before you create it.

עוד קודים של Firebase ‏(שירותי Google)