How to properly detect failing query? #1378
-
When some document in the collection is denied to read Firebase SDK fails:
But when the same collection is read by this code:
It will not fail, just return empty list. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You will need to use the Firebase Console and the Rules playground to check what permission is missing. Note this is not dependent on VueFire. |
Beta Was this translation helpful? Give feedback.
-
I know what causes fail - I intentionally have multiple rules what allows to read only some documents.Firebase SDK throws exception when it happens, I just want Vuefire to pass it to my code so it can know it failed because of permissions. Currently it see just empty result.Honza Pobořil💬Signal2. 8. 2023 v 10:21, Eduardo San Martin Morote ***@***.***>:
You will need to use the Firebase Console and the Rules playground to check what permission is missing. Note this is not dependent on VueFire.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Aha, that's it, thank you. Expected standard exception.Honza Pobořil💬Signal2. 8. 2023 v 14:39, Eduardo San Martin Morote ***@***.***>:
Ah, that's from the error variable: https://vuefire.vuejs.org/guide/realtime-data.html#Subscription-state
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Ah, that's from the
error
variable: https://vuefire.vuejs.org/guide/realtime-data.html#Subscription-state