-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Firestore crash on invalid permissions #536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've also experienced this issue frequently when calling setData() on a document with invalid permissions. As a workaround for now, I've had to make some very careful checks in my code before writing to Firestore - definitely not an ideal long solution. |
I have the same problem. An update would work a couple of times, before the it crashes eventually. Even when changing the rules to wide open:
|
Thanks for reporting this. This is likely already fixed with #510, which will be part of our next release. I will try to see if I can re-produce this issue with and without this PR. |
The fix for this has been released as part of 4.8.0. |
Uh oh!
There was an error while loading. Please reload this page.
Calling
.setData()
on a Document with invalid permissions (on the backend database rules) results in a hard crash.Crash:
Here are the incorrect Firestore Rules. I have since corrected the rules to be valid and the iOS app no longer crashes, however, that's not a long term solution.
The text was updated successfully, but these errors were encountered: