Error getting documents: Error: "Missing or insufficient permissions." in FirebaseError: Missing or insufficient permissions. << at new e (firebase.js:822:9029) << at t.ti (firebase.js:822:75393) << at t.Di (firebase.js:822:82774) code example

Example: Uncaught (in promise) FirebaseError: Missing or insufficient permissions.

When you look at your Firestore rules, they should match:

service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read;
      allow write: if false;
    }
  }
}
If you do not allow read, you may see this issue in the client.

Tags:

Misc Example