Include context in error message cloud_firestore/permission-denied #10307
Unanswered
jakusb
asked this question in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently if anything fails the security rules, this generic error message is thrown:
Error: [cloud_firestore/permission-denied] Missing or insufficient permissions
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 299:10 createErrorWithStack
dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 341:28 _throw
dart-sdk/lib/core/errors.dart 116:5 throwWithStackTrace
dart-sdk/lib/async/zone.dart 1378:11 callback
dart-sdk/lib/async/schedule_microtask.dart 40:11 _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 166:15
This message has no hint AT ALL to what query or request was attempted that failed the rules.
This results in a wild goose chase through all code everytime this happens. So much time could be saved by adding some context to what call failed.
Beta Was this translation helpful? Give feedback.
All reactions