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)