-
Notifications
You must be signed in to change notification settings - Fork 375
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
[Firestore] Unhandled error Error read ECONNRESET after enabling 'preferRest' #2243
Comments
I found a few problems with this issue:
|
tracking internally b/291972583 |
We are also seeing lots of ECONNRESET since using rest. In our case, it is because the firebase functions are now setting FIRESTORE_PREFER_REST to true in environments which essentially turned this functionality on for us by default which caused us to get ECONNRESET errors across all of the functions which we recently deployed. I linked a new issue asking for guidance on this (see link to issue above in @google-cloud/firestore repo). |
A common root cause of this error is that not all promises are awaited. In other words, there are background tasks that finish after the function loses CPU/Network access. See the "Do not start background activities" section. If there's a more specific repro that you'd like me to investigate, please let me know. |
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Ever since I enabled
preferRest
:...I've been getting many
Unhandled error Error read ECONNRESET
error notifications from Google Cloud. Here's a typical notification message:Relevant Code:
The text was updated successfully, but these errors were encountered: