-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[cloud_firestore] snapshots should have stream errors when errors occur in Query #384
Comments
The issue at flutter/flutter#31988 has been closed and moved here. Future collaboration on this issue will be done here. |
@kroikie Any update on this? This is definitely a challenge in our project. When we stream snapshots we will often find ourselves waiting for data which never returns because there was an underlying error which is never reported to us. When we go fetch the data once we get errors right away. Errors need to be reported consistently regardless of doing a single fetch or observing a stream of changes. I think the only way we can work around this failure mode is to always do a single fetch first and then a stream of snapshots after. Is there any plans to change this behavior? |
@dustin-graham I have the same issue with error is not being reported, I have created another issue for this: #2334 |
Consolidating under #1223 - we'll be looking at parsing native error messages & codes and bubbling these up to the Dart layer in a consistent cross-platform format. |
Originally posted by @ened in flutter/flutter#13904 (comment)
Can confirm Firestore does not crash anymore in case of a missing index. There is clear error description in the logs.
I would, however, expect the AsyncSnapshot to have the error field clearly set.
Sample code:
snapshot.error
&snapshot.hasError
really should be set in that case.The text was updated successfully, but these errors were encountered: