Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase: Debugging insufficient permissions

Uncaught (in promise) Error: Missing or insufficient permissions.

I have a large app and expanding the error object is not helping me at all. Is there a way to read the permissions error log in Firestore so I can see what document or collection was disallowed?

like image 658
Ronnie Royston Avatar asked Nov 08 '22 00:11

Ronnie Royston


1 Answers

I went from having no information about the error to:

Uncaught FirebaseError: 
false for 'get' @ L167, false for 'get' @ L207

By using the firebase firestore emulator . I highly recommend it, along with the using the emulator UI.

like image 117
Mateja Petrovic Avatar answered Nov 15 '22 08:11

Mateja Petrovic