-
Notifications
You must be signed in to change notification settings - Fork 150
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
Deadline exceeding when saving updates #739
Comments
@jakeleventhal Hmmm. That looks pretty strange. The stacktrace of the crash is vanilla HTTP2, which is built into Node (and our transport layer). I will follow along on the issue you filed and see if there is anything else we can do. Thank you! |
Same here. This all seems related to the general destabilization seen on firebase firestore/functions over the last month. Seems like you either see things like deadline error using |
I got a similar error with firebase-admin v8. It may only happen in the proxy environment. following is my code and logs:
|
It might be same as googleapis/nodejs-pubsub#679 |
Receiving the same errors and also combined with the one below. (node:23) UnhandledPromiseRejectionWarning: Error [ERR_HTTP2_GOAWAY_SESSION]: New streams cannot be created after receiving a GOAWAY |
Update: Update (Edit): Seems that in the meantime google-gax and @google-cloud/firestore (just yesterday - 3.0.0) packages have been updated to a newer grpc-js. My problem is that I'm under firebase-admin (https://github.com/firebase/firebase-admin-node) and that's still stuck in 2.6.1. |
Is there any update on this? |
@schmidt-sebastian I get this error only for some calls, especially when doing a lot of requests at once. |
I am trying to create several records in a database (around 10,000) and each time I run my node script, the firestore database has a few hundred entries which slightly differ each time (a different chunk of the 10,000 records each time) and I get the following log:
|
I'm seeing this error over and over with large batch updates (an array of batches) This is nearly a year old... is there any update here? |
I ran into this issue today (exact same error as @criachi), and it stopped happening when I put a 50ms pause between every firestore call, which is pretty annoying to have to reason around. That might be helpful for other folks here. Would it be possible to at least get an update on whether this as intended or not, @schmidt-sebastian ? |
a 50ms pause seems untenable for larger applications like mine. especially with batch updates as described in my example above. having a batch update limit requires multiple batch updates to be made and it could have thousands of updates. having 50ms updates can grind an application to a halt if there are enough operations |
Keep running into this issue when trying to run a script trying to read a few hundred documents from Firestore.
|
When I switch to Node 10, the issue disappears |
@IchordeDionysos didn’t realize that Node 10 was available! Have you run into any stability issues? I know Firebase considers it I also just realized you can set specific timeout/memory configurations on each function: https://firebase.google.com/docs/functions/manage-functions Might those options help mitigate |
I am and have been running node's official docker image with the |
@sambecker Well, we haven't run into this issue in our Cloud Functions for Firebase environment running on Node 8. So when I switched the node version using nvm, I haven't had the problem anymore. Additional hint, we use yarn as a package manager. |
I also added pauses and now all the records I need are being added. |
This has been solved in Node 8.16.2, 10.17.0 and 12.11.0 |
Upgrading my Node version to 10.17.0 (from 10.16.3) solved this issue for me too. |
Upgrading to Node 10 (beta) from Node 8 on Firebase functions seemed to have helped me too! |
Happening with us too. |
@anasanzari did you try to update to Node 10.17.0?
|
I am going to close this issue for now since it seems to be resolved in newer Node versions. If this issue re-appears, we can re-open this issue. |
Environment details
node:latest
docker image)@google-cloud/firestore
version: 2.2.8Steps to reproduce
I have a function that iterates through a file and updates documents with the corresponding ids.
the updates are nothing complicated - im just doing:
await firestore.doc('some path').update(some small 2-3 line payload)
and i get the following error
I can't get it to reliably reproduce. It just happens sometimes. And it isn't a network issue because this is happening on a container on GCP.
Within a second after I get this error that is fatal and restarts the server. This has happened several times (all following the Deadline exceeded error):
which gets immediately followed by:
The text was updated successfully, but these errors were encountered: