-
Notifications
You must be signed in to change notification settings - Fork 928
Hanging query for Firestore #7860
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
Comments
Thanks for reporting @thomasdao. I'll try to reproduce it |
@ehsannas thanks, I've invited you to the sample project :) |
Thanks @thomasdao . I am able to see the error in the logs from your repo. I do, however, see that each such log message is followed by an Please take a look at: |
@ehsannas I've never seen the I find the reason I've tested adding a delay of 1 second between each paginated query to reduce server load, and see the same error |
I'm also running into this error. Subscription seems to work fine for a while and then gets dropped with the same RPC 'Listen' stream transport error. Any ideas on what this might be or where to catch the error? |
Same issue after upgrade AngularFire to 17.0.1 which depends on firebase ^10.7.0. One of our project query becomes slower and run into the Tried |
I'm also seeing the same issue with hanging snapshot queries for a while, with the same type of Sometimes, after failing with the error, the snapshot query retries and returns correct data after a couple of minutes, but most times it just hangs indefinitely. In our case, it only happens with queries that would return a large amount of data (hundreds of docs containing fairly large strings). The issues started with versions
Using I wasn't able to reproduce it in a local or staging environment, as it only seems to show up in our production environment where we have around |
I'm also running into this error since upgrading to v10.7.0, and much like @phileasthefogg, getting the same RPC 'listen' stream transport error. This is a small project ( |
Hi @ehsannas, not sure if you have been able to work on this issue? Maybe @MarkDuckworth can take a look. This issue has prevented us from updating to the latest version. Thank you! |
same issue happens for my project (using flutter), in the beginning everything was fine (I've being using firestore for about 6months) but now suddenly getting all the time (maybe data sets grown, due to smaller db size didn't experience it before) |
@MrDavidRios Would you be able to share your project in which you're able to consistently reproduce this issue? (feel free to point me to a github repo). Thanks! |
This phenomenon seems to be more likely to occur in a slow network environment. |
(note to googlers: this may be related to support case b/325591749, which reports similar webchannel issues when the network is throttled) |
Same thing happens in our project. Unfortunately I can't downgrade to firebase 10.6.0 (without much effort) because of AngularFire and Angular dependencies. |
This issue happened since December last year, affect multiple project but did not receive any update. I'm on Blaze plan but cannot update the library to the latest version and it's really frustrating. Could you please share if any of you are investigating this issue? Thank you! @MarkDuckworth @dconeybe @ehsannas |
@thomasdao, I'll touch base with the team and see if I can move this forward. |
This problem affects users in our production apps. We would highly appreciate if the Firebase team could check what changed in recent versions and fix it soon. |
Thank you @MarkDuckworth. Just to second @thomasdao & @jorgsiegel, Would really appreciate to see some progress here. |
We're also encountering this issue (running 10.8) Tried 10.11 and it's still happening, but as suggested above downgrading to 10.6 fixed it |
I have a potential fix for this issue. Would anyone be willing/able to test it out? The fix is in #8145 (NOTE: it is still a work-in-progress). Please comment on the PR with the outcome of your experiment (rather than commenting here on the issue). You will need to build the firestore sdk for yourself, but, thankfully, it's relatively straight forward.
Note that the Note that the extra The "cp" command will copy the compiled Firestore JavaScript bundles into your own project's |
@MarkDuckworth I check out your branch and follow the instruction from #7860 (comment). Please see the log attached, thanks! |
Thanks @thomasdao. In my local tests, when I see In your logs, the STAT_EVENTs leading up to the WebChannelConnection error are different. I'm trying to understand why. The repro that you previously shared with me is not currently reproducing this error. Does that shared repo still reproduce the issue for you? |
Also @thomasdao, can you provide the Firebase project ID you used when creating firebase_log.txt? Is it the same project ID from your shared repro? We want to review server logs. |
Yes, I can still reproduce this issue. Sometimes the query can complete, but the next time I run it again, the query would hang.
Yes it's the same project ID. |
Version 10.11.1 was released today and rolls back the WebChannel config to be equivalent to the 10.6 (and 10.5.2) releases. I have tested with @thomasdao's reproduction and I'm seeing the queries complete consistently and quickly. Errors |
@MarkDuckworth thank you, I tried 10.11.1 and found the query can complete quickly. Just curious, is |
Friends, Cloud Firestore |
Wed 14 Aug 2024 - Still happening in "firebase": "^10.12.5". This issue is constant to the point where firebase (therefore the app) is completely unusable. Downgrading to 10.6 did not fix the issue nor using; experimentalForceLongPolling: true, Can somebody share some light on what's going on with this issue, is it even being addressed? It's never been a problem and I've been using firbease for 3 / 4 years now. |
We are also facing this issue!! It has impacted all our users in prod! Please help us fix this asap!!! |
Started getting this in production as well. Been on an older version 10.1.0 for a long time without any issues, until today.
Update: Trying the latest sdk version, the issue still persisted. |
This is impacting our production app (oversee.shop) as well. Entire auth & direct connections to Firebase are completely down. |
Same issue in our prod app |
Hi folks, did you change the SDK version you're using in production? |
Now I'm using |
We also updated to |
Got this from the GCP support:
|
A WebChannelConnection transport error does not necessarily indicate that the behavior you are seeing is related to the original issue, which was fixed in 10.11.1. There are normal network conditions that could lead to the failure of the Web Channel transport. The SDK is able to recover from these. We may be seeing a different issue/behavior, so what may be more helpful to understand is if you are also seeing "INTERNAL ASSERTION FAILED" in your SDK logs? And also, when you see these WebChannelConnection errors, does the SDK then resume normal behavior? If so, how long does it take. If you are able to create and share SDK debug logs with us, that will help us diagnose. You can share logs in a GitHub Gist or through a private repo shared with me and @ehsannas. Thanks. |
for us it never recovered. It just stopped making any network calls altogether. We had not updated the sdk version and then all of the sudden it broke. |
Thanks for the info @rakesh-snippyly. For anyone experiencing a sudden start of this behavior without updating the SDK, are you able to provide an approximate time you started experiencing it? |
The issue started happening for us without the SDK version update. Not sure the exact time it started happening, but sometime between 5pm EDT yesterday (Monday Aug 19) and 10am EDT today (Tuesday Aug 20) |
For some reason, it just starting working for us (without any changes on the deployed version) |
same thing happened to us - its working now on its own! |
Same, would love to know what happened here |
Hi any updates? |
Yes. We are tracking the investigation internally (Googlers see b/361546680 and b/361546352). While issues that appear and disappear without SDK changes often point to some issue in the network and/or backend, we will also take the action to improve the error messages in the SDK in future releases. @wevertoum this looks like a different issue (Bad Request?) I don't believe there's any ongoing issue here. I will close this since it has now become an amalgam of different discussions on various issues on different SDK versions, and that the original issue has been resolved. Please do open new issues if you encounter anything. |
For my case I was using Using |
Operating System
Both Mac and Windows
Browser Version
Chrome, Electron Browser window
Firebase SDK Version
10.7.0, 10.7.1
Firebase SDK Product:
Firestore
Describe your project's tooling
Plain Electron app
Describe the problem
This is the new ticket for hanging query issue, follow up from #7771 and #7652
When update Firebase to 10.7.0 and 10.7.1, the query becomes a lot slower and frequently stuck with error below:
Switch back to 10.6.0 and the query completes quickly.
Steps and code to reproduce issue
I've created a minimal sample to reproduce this issue and have shared with @MarkDuckworth, if you need to get access to the private repo, please let me know, thank you!
The text was updated successfully, but these errors were encountered: