Open rdinkel opened 4 years ago
Thanks for filing the feature request. I've tracked this internally as b/166499006 for further triaging.
Re-opening to make it easier for others to find and subscribe to this feature request.
This will save new users a lot of time like me, who spent quite some time figuring why that error message was occuring.
+1 for this, just spent ages trying to understand what false for get
meant..
+1
+1
+1
+1 This would be very helpful
Environment info
Test case
package.json
firestore_rules.json
test,js
Steps to reproduce
firebase emulators:start
npm test
Expected behavior
A clear error message what is wrong. Something like
FirebaseError: PERMISSION_DENIED because security rules returned false for 'get' @ L5
Actual behavior
Running Security Rule Test fails with following unclear error:
FirebaseError: false for 'get' @ L5 at new FirestoreError (node_modules/@firebase/firestore/dist/index.node.cjs.js:1205:28) at fromRpcStatus (node_modules/@firebase/firestore/dist/index.node.cjs.js:5240:12) at fromWatchChange (node_modules/@firebase/firestore/dist/index.node.cjs.js:5476:35) at PersistentListenStream.onMessage (node_modules/@firebase/firestore/dist/index.node.cjs.js:15743:27) at /home/roman/projects/asd/test/security_rules/node_modules/@firebase/firestore/dist/index.node.cjs.js:15676:30 at /home/roman/projects/asd/test/security_rules/node_modules/@firebase/firestore/dist/index.node.cjs.js:15712:28 at /home/roman/projects/asd/test/security_rules/node_modules/@firebase/firestore/dist/index.node.cjs.js:14143:20 at processTicksAndRejections (internal/process/task_queues.js:93:5)