googlearchive / firebase-dart

Dart wrapper for Firebase
https://pub.dev/packages/firebase
404 stars 144 forks source link

Database onValue does not call onError callback #365

Closed VickyBOSS closed 3 years ago

VickyBOSS commented 3 years ago

Database onValue does not call onError callback

fb .database() .ref("uwallets/nNcVBqsWfaY66ixRQxbwa5sXXHE3") .onChildChanged .listen((event) { logger.d("EVENT"); }, onError: (err) { // NEVERRRRRRRR prints logger.e("ERROR"); });

kevmoo commented 3 years ago

Looking at https://firebase.google.com/docs/reference/js/firebase.database.Query#on there is no option to provide an event handler here.

What type of error are you missing? Can you give an example of how to trigger an error so I could create a test?

no-response[bot] commented 3 years ago

Without additional information we're not able to resolve this issue, so it will be closed at this time. You're still free to add more info and respond to any questions above, though. We'll reopen the case if you do. Thanks for your contribution!