-
Notifications
You must be signed in to change notification settings - Fork 893
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
Failed to get aggregate result because the client is offline #7198
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Thanks for reporting @sellsjonathan . I'll take a look. |
@sellsjonathan Are you using |
Second question: Is the authenticated user changing for cases when you get the error? |
Hey there, yes we do appear to be using |
Getting the same error with my project, using sdk 9.19.1with enableMultiTabIndexedDbPersistence() configured via the new caching api. I can trigger it by opening a second tab with my web-page... I am also testing with a user already logged in... |
Thanks for confirming @sellsjonathan @atsjo. This appears to be a bug specific to |
Fixes #7198. A proper long-term solution for multi-tab should be implemented.
* Allow aggregations to work with multi-tab. Fixes #7198. A proper long-term solution for multi-tab should be implemented. * Create .changeset/three-months-lie.md * Improve the change log entry. * Skip the relevant test. * Skip the relevant test.
Thanks @ehsannas , really appreciate your time and investigation into this. When do you think this will get released? |
The fix has been merged. It'll be available in the upcoming release (likely next week) |
I wanted to start using the new aggregate queries, to be more efficient in my reads.
My project has collections of
projects
andtasks
I wanted to find the totals of tasks per project with the following query, through a
forEach()
NOTE:
firebase.documents()
is just a wrapper for this ref:This works roughly 50% of the time, especially when coming from a page that has already recieved data back from firestore in a more convention
getDoc
orgetDocs
query. If I hard reload on the page that executes this query, as well as in other circumstances I receive the following error:FirebaseError: Failed to get aggregate result because the client is offline.
Any help or clarification would be greatly appreciated. Thank-you.
The text was updated successfully, but these errors were encountered: