Closed ReneHabermann closed 3 years ago
We actually have a solution for this already with a branch that's ready to go, but have been discussing a more complete fix because the original code was being used in multiple places (that's the problem) instead of being properly separated. It should be resolved by #161 .
Resolved by #162 .
Describe the bug When an error occurs while trying to add a document to a firestore collection (like a 403 authentication error), an error in Godot is produced, stating this:
firestore_task.gd:155 emits the "error" signal with one parameter. In firestore_collection.gd:117 i think the signal is connected to the _on_error method. The _on_error method is in firestore_collection.gd:148, expecting 3 parameters.
To Reproduce Run
Firebase.Firestore.collection("mycollection").add("", {"data":"mydata"})
on a collection you don't have write access to.Expected behavior The method which is connected to the error signal should be called properly, and itself emit a signal. At least there shouldn't be an error occuring in Godot.
Environment:
I love your work, a joy to work with! :)