Error: [cloud_firestore/permission-denied] Missing or insufficient permissions.

I'm using Firestore and some of my code stopped working (it was working previously). I have validated the schema between firestore and flutterflow:

I have confirmed that the rules should work for all needed queries and align with what flutterflow recommends

In test mode, my app is failing with this error showing in the chrome console

dart_sdk.js:11927 Uncaught (in promise) Error: [cloud_firestore/permission-denied] Missing or insufficient permissions.
    

    at Object.createErrorWithStack (dart_sdk.js:11927:12)
    at Error._throw (dart_sdk.js:15158:18)
    at Error.throwWithStackTrace (dart_sdk.js:15155:18)
    at async._AsyncCallbackEntry.new.callback (dart_sdk.js:50169:18)
    at Object._microtaskLoop (dart_sdk.js:50026:13)
    at _startMicrotaskLoop (dart_sdk.js:50032:13)
    at dart_sdk.js:45573:9

My first page loads as expected and shows the correct data from firestore, which seems to validate that the schema lines up. Here is what I have in firestore

Here is what the app shows

When I change a value and try to save it, I get this

I need some way to know what FlutterFlow is sending to Firestore to know if my rules need to be updated or FlutterFlow has a bug. I can't find any troubleshooting steps to review the actual queries being sent to firestore.

Any pointers welcome.

2
12 replies