-
Notifications
You must be signed in to change notification settings - Fork 20
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
Error Callback Arguments #40
Comments
Is it not possible to catch the exceptions in this case? Otherwise the API needs to change |
Won't the exception be thrown asynchronously? Could you show me a simple example of how to catch a write exception that could be caused by either a permission error, or downed connection? |
Do you need to be able to track it back to a particular write? I think that'll be hard with the exception. We could enrich the exceptions as a stop gap, and I'll think about explicit error callback for the rewrite As for providing sample code, will see if I have time this evening to knock out something from you |
Yes, otherwise I can't tell the user if a particular action (like a form submit that triggers a write) failed and if they need to retry. Or maybe the write callback can be called with an additional error argument? Thanks! |
@pate Sorry, I haven't had time to look at this yet. Have you been able to work around it for now? |
@pate have you figured this out? I'm on the javascript API, |
My use case is that I just need the async channel for |
@Quantisan in your example is the listener being called at least? it's probably just tripping over the specifics of that decorated listener, which is build a tuple of the key/value, and making sure that value is Clojure(Script) data. I have never actually used |
@crisptrutski yes, my user might not have permission to access the data. Thanks for the tip. I'll figure this out next week. |
@Quantisan have you progressed with this at all? I'd like to see if you found a solution before I go messing up the library 😝 |
@flyboarder frankly, it's been too long... so just go ahead. Thanks for checking! |
I need to be able to handle specific failed Firebase writes due to permissions or missing Internet, please.
The text was updated successfully, but these errors were encountered: