You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to debug my application and see why I'm not receiving any updates from Firestore. During development I'm running my Flutter app in debug mode and in the console I can see following messages:
W/Firestore(29397): (23.0.3) [Firestore]: Listen for Query(target=Query(path/to-some/data order by __name__);limitType=LIMIT_TO_FIRST) failed: Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}
W/Firestore(29397): (23.0.3) [Firestore]: Listen for Query(target=Query(path/to-some/data order by __name__);limitType=LIMIT_TO_FIRST) failed: Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}
E/flutter (29397): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: [cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.
E/flutter (29397):
E/flutter (29397): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: [cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.
E/flutter (29397):
W/Firestore(29397): (23.0.3) [Firestore]: Listen for Query(target=Query(path/to-some/data order by __name__);limitType=LIMIT_TO_FIRST) failed: Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}
E/flutter (29397): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: [cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.
These are triggered when I'm setting up listeners to documents (I think). I have these listeners wrapped in try / catch blocks like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to debug my application and see why I'm not receiving any updates from Firestore. During development I'm running my Flutter app in debug mode and in the console I can see following messages:
These are triggered when I'm setting up listeners to documents (I think). I have these listeners wrapped in
try / catch
blocks like this:However when the problem occurs, my
logger
does not receive it so I'm unaware of these issues. My logger takes care of telemetry.Why are these error events logged in to the console but not caught by the block?
Beta Was this translation helpful? Give feedback.
All reactions