New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error message improvement for testing security rules #2577
Comments
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 |
+1 |
2 similar comments
+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)
The text was updated successfully, but these errors were encountered: