Missing or insufficient permissions: The following request was denied by Firestore Security Rules:

Hi, I’ve faced same problem as below. Sometimes I solved but this problem show up from time to time. I want to know exactly how I can solve this error.

====================

Missing or insufficient permissions: The following request was denied by Firestore Security Rules:
{
“auth”: {
“uid”: “KRX0izMrEXNmPc3bF9QA2QNBTXs2”,
“token”: {
“name”: “tomi”,
“email”: “kdeosg79asdsl@gmail.com”,
“email_verified”: true,
“phone_number”: null,
“sub”: “KRX0izMrEXNmPc3bF9QA2QNBTXs2”,
“firebase”: {
“identities”: {
“password”: [
kdeosg79asdsl@gmail.com
]
},
“sign_in_provider”: “password”,
“tenant”: null
}
}
},
“method”: “list”,
“path”: “/databases/(default)/documents/workspaces”
}

src/firebase/firestore/use-collection.tsx (100:11) @ useCollection.useEffect.unsubscribe

   98 |         errorEmitter.emit(

99 | ‘permission-error’,

> 100 | new FirestorePermissionError({

  |           ^

101 | path: collectionPath,

102 | operation: ‘list’,

103 | })

Call Stack6

Show 1 ignore-listed frame(s)

useCollection.useEffect.unsubscribe

src/firebase/firestore/use-collection.tsx (100:11)

FirebaseProvider

src/firebase/provider.tsx (114:7)

FirebaseClientProvider

src/firebase/client-provider.tsx (44:5)

ClientProviders

src/app/providers.tsx (14:7)

RootLayout

src/app/layout.tsx (31:9)

1 Like

Hello there.

Give me a moment to see what I can do. A notification will come to let you know that I have answered your question. I can’t guarantee a fix, but to help you, can you to tell me what level you feel comfortable at: Entry Level-Junior, Junior-Mid Level, Mid-level or higher? This will help me when putting together something that might work.

All the same, I am sure we can get it done. Now if you absolutely need a fast response, When the server loads it will give you a chance to Report a bug, hit that button. If you did not know the Firebase Team is really good. Google how to submit a ticket to Firebase Support. See if they respond before I can.

Should you choose that option please share with the community so others might learn. I will do my best to answer as early as possible

It appears you are attempting to LIST the records in the workspaces collection with an account that has not been given the permission to perform a LIST operation. From within the Firebase console, review your Cloud Firestore security rules for the workspaces collection.

1 Like