-
Notifications
You must be signed in to change notification settings - Fork 892
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
GRPC errors intermittently cause firebase client to fail #6724
Comments
Update: This only seems to throw an error when connected to the emulator suite, not when connected to a production firestore database. |
Thanks for the report. I've reproduced the issue and I'll investigate. I also saw, as you noted, that this only seems to be problematic when using the Firestore Emulator; using production seems to work fine. |
@Hoppi164 I just wanted to let you know that I haven't forgotten about this issue. Other priorities prevented me from making much progress since I reproduced the bug. I'm not sure when exactly, but I will get to it! Thank you for your patience. |
This could have the same root cause as firebase/firebase-tools#5197. |
Hi Denver. I appreciate your hard work on figuring this out. I had a look at the other issue you linked but I'm not sure how these two could be related. I'm not fully versed on your architecture, but it seems we're getting totally different error messages and that we're doing different things.. |
@Hoppi164 The common thread between this issue and firebase/firebase-tools#5197 is that they both regard problems in the Firestore emulator when it is under heavy load. In this issue, it seems that the Firestore emulator is sending back corrupted data and in the other issue it looks like the Firestore emulator is losing its network connection. On the surface, they could be different symptoms of the same problem. Could you reproduce the issue, and this time attach the |
Hi Denver, Please see below. Test Terminal Output:
Firestore-Debug.log
|
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Our application is experiencing problems with firebase
getDocs()
never responding, and randomgrpc connection error
messages when writing documents.At my workplace we were experiencing several issues.
Our application has a lot of reads and writes going on, so i created a test script to simulate this environment without any of our proprietary code; and i was able to semi-reliably replicate the exact error codes we are experiencing.
Steps to reproduce:
node test.js
get timeout - read took over 5 seconds
Relevant Code:
Example Errors
The text was updated successfully, but these errors were encountered: