-
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]: TooManyRequestsException #13548
Comments
Hi @ricardobegar, this appears to be a native sdk issue. You can keep tracks on it here: firebase/firebase-android-sdk#6365. |
thank you very much for responding. I'm going to follow up on that thread. If you know anything, I would appreciate it if you could let me know. |
I work on the native Android Firebase SDK and I was able to identify a cause of the exception: However the code related to the Android Firebase SDK appears to be unchanged and behaving as expected. Specifically the error occurs due to resource exhaustion when creating more than 100 FirebaseFirestore instances without terminating any of them, using We have 10 reports of this issue in the last 3 weeks, and many indicate that they started seeing this issue with a Flutter upgrade. This suggests to me that there may be a change in Flutter or FlutterFire that is causing these apps to leak FirebaseFirestore instances. Can you confirm if there is any recent change to Flutter or FlutterFire that may be causing FlutterFire to create many instances of FirebaseFirestore without terminating them? |
Thanks for giving more context @MarkDuckworth, I'll have a look to see if I can see any recent change that could cause that EDIT: Nothing in the code caching the Firebase Firestore instance on Android has changed in 14 months. I think it's probably caused by the latest firebase_core / cloud_firestore versions because they include the latest version of Native SDKs. But let me investigate a bit more to see if I can reproduce it locally. |
Hey @ricardobegar. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Is there an existing issue for this?
Which plugins are affected?
Other
Which platforms are affected?
Android
Description
Randomly when I consult data from Firestore it gives me the error TooManyRequestsException
Reproducing the issue
Just initialize the project. The error is random, sometimes yes, sometimes no.
Firebase Core version
3.6.0
Flutter Version
3.24.3
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
The text was updated successfully, but these errors were encountered: