-
Notifications
You must be signed in to change notification settings - Fork 561
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
Slow response on firestore addSnapShotListener #1790
Comments
Assigning to current on-call. |
@maclir - Can you please enable logging in Firestore and re-run this query so we can better diagnose this? Thank you. |
This happens on a real device only and not the emulator. I will make a build and get the logs during the week. |
OK. Finally got around to making the build for this on my phone. Now is the wait game to see when it happens again. |
I see this on crashlytics non-fatal logs, which is
I'm pretty sure that the device has internet when this happens though ^, other than other apps having connectivity, new ads are also fetched on the screen that Not from firestore logs, but the error exception itself. |
Thanks for this update. Generally speaking the Android networking stack varies a lot from version to version, device to device, and isn't always reliable. We do our best to compensate for this but this issue will never fully go away. The exception you shared is helpful however we still need the firestore log to understand what the retry logic might have been doing when it happened. Without this there isn't much we can do. Once you have it, please attach/link it and include as much detail on the device/os as you can. |
Device that I am using is: I am still trying to get the log but this issue, so far, is only happening on my release builds which makes it not possible to get the logs for them. I have a debug build on my phone as well, and will continue to test on it and see if I can reproduce it there. |
Finally managed to catch it:
|
What does firestore use for networking? Is it okhttp? Can it be overridden? |
Hi @maclir |
@maclir I've been trying to investigate this issue, or at least reproduce it, but without success. Based on the log line |
Hey @maclir. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 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! |
I will try to collect those longs. It will take some time as it doesn't happen often :) |
It may be worth mentioning that the only times I could reproduce this, it was when I clicked a notification and deeplinked directly into the screen that was listening for the updates. |
Hey @maclir. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 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! |
Since there haven't been any recent updates here, I am going to close this issue. @maclir if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
When doing a single document get query, if phone is on wifi, the initial result from server comes with a very long delay (1 minute).
If I disable wifi on phone to switch to mobile data, response comes back immediately.
Steps to reproduce:
Relevant Code:
The text was updated successfully, but these errors were encountered: