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
Currently in my app, when a user logs out I always get the error: [cloud_firestore/permission-denied] Missing or insufficient permissions.
I have ensured that all my streams are cancelled before calling signOut() but I still get an error from the stream after the stream has been cancelled.
I'm just trying to gauge if this is something I've gotten wrong before a file a bug.
This is the structure I currently use in my app.
Create the stream.
Stream<QuerySnapshot<Map<String, dynamic>>> get someDataStream =>FirebaseFirestore.instance
.collection('data')
.snapshots()
.handleError((e) =>print('someData: $e'));
I can verify that dispose is being called. However, after signing out, an error is thrown.
Initially I thought I wasn't disposing of a streamSubscription somewhere in the app, however after adding handleError to the stream I can see it comes from a stream that I had closed as it will print someData: [cloud_firestore/permission-denied] Missing or insufficient permissions.
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.
-
Currently in my app, when a user logs out I always get the error:
[cloud_firestore/permission-denied] Missing or insufficient permissions.
I have ensured that all my streams are cancelled before calling
signOut()
but I still get an error from the stream after the stream has been cancelled.I'm just trying to gauge if this is something I've gotten wrong before a file a bug.
This is the structure I currently use in my app.
Create the stream.
Inside my state I have the following:
I can verify that dispose is being called. However, after signing out, an error is thrown.
Initially I thought I wasn't disposing of a streamSubscription somewhere in the app, however after adding
handleError
to the stream I can see it comes from a stream that I had closed as it will printsomeData: [cloud_firestore/permission-denied] Missing or insufficient permissions.
Beta Was this translation helpful? Give feedback.
All reactions