Skip to content

🐛 [cloud_firestore web] There is no line number for the original firestore call on a "permission-denied" exception #6743

@bernaferrari

Description

@bernaferrari

When permission-denied exception is triggered, Flutter doesn't show the origin point (the firebase call that triggered it), so I have no idea which method I should fix.

Ideally, it would show:
file/firebase.dart 1234:56 callFirebase

The following FirebaseException was thrown:
[cloud_firestore/permission-denied] Missing or insufficient permissions.

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49  throw_
packages/firebase_core/src/internals.dart 90:18                               <fn>
dart-sdk/lib/async/zone.dart 1362:47                                          _rootRunUnary
dart-sdk/lib/async/zone.dart 1265:19                                          runUnary
dart-sdk/lib/async/future_impl.dart 172:20                                    handleError
dart-sdk/lib/async/future_impl.dart 719:46                                    handleError
dart-sdk/lib/async/future_impl.dart 740:13                                    _propagateToListeners
dart-sdk/lib/async/future_impl.dart 550:5                                     [_completeError]
dart-sdk/lib/async/future_impl.dart 606:7                                     <fn>
dart-sdk/lib/async/zone.dart 1354:13                                          _rootRun
dart-sdk/lib/async/zone.dart 1258:19                                          run
dart-sdk/lib/async/zone.dart 1162:7                                           runGuarded
dart-sdk/lib/async/zone.dart 1202:23                                          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           <fn>
════════════════════════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: [cloud_firestore/permission-denied] The caller does not have permission

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions