Hi all.
The dgraph-js library includes a dependency on the latest version of grpc-js, so when that library is updated in npm, a build will automatically pull in the new version. Unfortunately, the “latest” version of grpc-js was broken for two days, so please re-do any builds you may have executed in the 1/9 - 1/11 timeframe.
Our understanding is that the gRPC connection is not kept alive properly, so node/js callers will stop working without any obvious reason.
The broken dependency is grpc-js v 1.8.2, and it has this defect: https://github.com/grpc/grpc-node/issues/2318 .
grpc-js 1.8.3 fixes the bug and that version is now latest so will be included by npm.
Everything should work properly now (post 1/11/23), but because the 1.8.3 release may have been rushed out as a critical fix without full testing, we suggest including this PR from the Leadr team (Thank you, Nick!) https://github.com/dgraph-io/dgraph-js/pull/164 which specifies a dependency on grpc-js 1.8.1 which is know to be stable.