You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ deno run --allow-all test.js
error: Uncaught (in promise) WeaviateStartUpError: Weaviate startup failed with message: Weaviate failed to startup with message: Weaviate makes use of a high-speed gRPC API as well as a REST API.
Unfortunately, the gRPC health check against Weaviate could not be completed.
This error could be due to one of several reasons:
- The gRPC traffic at the specified port is blocked by a firewall.
- gRPC is not enabled or incorrectly configured on the server or the client.
- Please check that the server address and port: localhost:50051 are correct.
- your connection is unstable or has a high latency. In this case you can:
- increase init-timeout in weaviate.connectToLocal({timeout: {init: X}})' - disable startup checks by connecting using 'skipInitChecks=true'
Any idea? Is it a Deno problem?
Both ports (8080 and 50051) are port forwarded from a kubernetes cluster.
Looking into where the issue could be coming from, I can isolate the problem to @grpc/grpc-js==1.13.4, which our package depends on through nice-grpc, as the following code hangs when I run with deno==2.4:
and the cmd deno run --allow-env --allow-net --allow-read
Looking around at the landscape of other packages, it could be that we need to develop a deno-only package that uses its own deno-specific grpc transport implementation. Given some recent exploratory work into developing a browser-only client here: #307, extending this work to also allow publishing a deno-only client would become achievable
There's also an open issue in Deno about supporting @grpc/grpc-js on server-side (#23714), whereas denoland/deno#23246 is more about supporting @grpc/grpc-js on client-side, judging from a brief skim of the two issues. Is denoland/deno#23714 the underlying problem? If so, would the Deno-specific client you mentioned @tsmith023 be deprecated when denoland/deno#23714 is fixed?
Looking into where the issue could be coming from, I can isolate the problem to @grpc/grpc-js==1.13.4, which our package depends on through nice-grpc, as the following code hangs when I run with deno==2.4:
import grpc from '@grpc/grpc-js';
import protoLoader from '@grpc/proto-loader';
const main = () => {
console.log('Starting gRPC health check...');
const stub = new protoDescriptor.grpc['health'].v1.Health('localhost:50051', grpc.credentials.createInsecure());
stub.check(protoDescriptor.grpc['health'].v1.HealthCheckRequest, (error, response) => {
if (error) {
console.error('Error:', error);
} else {
console.log('Health Check Response:', response);
}
})
}
main()
and the cmd deno run --allow-env --allow-net --allow-read
Looking around at the landscape of other packages, it could be that we need to develop a deno-only package that uses its own deno-specific grpc transport implementation. Given some recent exploratory work into developing a browser-only client here: #307, extending this work to also allow publishing a deno-only client would become achievable
Looking into where the issue could be coming from, I can isolate the problem to @grpc/grpc-js==1.13.4, which our package depends on through nice-grpc, as the following code hangs when I run with deno==2.4:
import grpc from '@grpc/grpc-js';
import protoLoader from '@grpc/proto-loader';
const main = () => {
console.log('Starting gRPC health check...');
const stub = new protoDescriptor.grpc['health'].v1.Health('localhost:50051', grpc.credentials.createInsecure());
stub.check(protoDescriptor.grpc['health'].v1.HealthCheckRequest, (error, response) => {
if (error) {
console.error('Error:', error);
} else {
console.log('Health Check Response:', response);
}
})
}
main()
and the cmd deno run --allow-env --allow-net --allow-read
Looking around at the landscape of other packages, it could be that we need to develop a deno-only package that uses its own deno-specific grpc transport implementation. Given some recent exploratory work into developing a browser-only client here: #307, extending this work to also allow publishing a deno-only client would become achievable
Looking into where the issue could be coming from, I can isolate the problem to @grpc/grpc-js==1.13.4, which our package depends on through nice-grpc, as the following code hangs when I run with deno==2.4:
import grpc from '@grpc/grpc-js';
import protoLoader from '@grpc/proto-loader';
const main = () => {
console.log('Starting gRPC health check...');
const stub = new protoDescriptor.grpc['health'].v1.Health('localhost:50051', grpc.credentials.createInsecure());
stub.check(protoDescriptor.grpc['health'].v1.HealthCheckRequest, (error, response) => {
if (error) {
console.error('Error:', error);
} else {
console.log('Health Check Response:', response);
}
})
}
main()
and the cmd deno run --allow-env --allow-net --allow-read
Looking around at the landscape of other packages, it could be that we need to develop a deno-only package that uses its own deno-specific grpc transport implementation. Given some recent exploratory work into developing a browser-only client here: #307, extending this work to also allow publishing a deno-only client would become achievable
After running with the following environment variables:
GRPC_VERBOSITY=DEBUG
GRPC_TRACE=all
I can confirm that it fails when creating a client, specifically when creating an internal-channel. Getting a skipped error in: node_modules/.deno/@[email protected]/node_modules/@grpc/grpc-js/build/src/internal-channel.js:297:23
Activity
DevChanQ commentedon Jun 25, 2025
Facing the same issue here on Deno
ben-laird commentedon Jul 20, 2025
I have the same problem in
v3.7.0using Denomalgamves commentedon Aug 4, 2025
Hey @pamoller could you share with me what version of Deno you're running on?
tsmith023 commentedon Aug 4, 2025
Looking into where the issue could be coming from, I can isolate the problem to
@grpc/grpc-js==1.13.4, which our package depends on throughnice-grpc, as the following code hangs when I run withdeno==2.4:and the cmd
deno run --allow-env --allow-net --allow-readLooking around at the landscape of other packages, it could be that we need to develop a deno-only package that uses its own deno-specific grpc transport implementation. Given some recent exploratory work into developing a browser-only client here: #307, extending this work to also allow publishing a deno-only client would become achievable
pamoller commentedon Aug 4, 2025
@ALL, thanks for reply. @malgamves always the latest deno version (deno 2.4.2). My investigation ended up on nice-grpc also. Maybe this helps @tsmith023 ??? denoland/deno#23246 (comment)
ben-laird commentedon Aug 7, 2025
There's also an open issue in Deno about supporting
@grpc/grpc-json server-side (#23714), whereasdenoland/deno#23246is more about supporting@grpc/grpc-json client-side, judging from a brief skim of the two issues. Isdenoland/deno#23714the underlying problem? If so, would the Deno-specific client you mentioned @tsmith023 be deprecated whendenoland/deno#23714is fixed?maxshulov commentedon Aug 10, 2025
After running with the following environment variables:
GRPC_VERBOSITY=DEBUG
GRPC_TRACE=all
I can confirm that it fails when creating a client, specifically when creating an internal-channel. Getting a skipped error in:
node_modules/.deno/@[email protected]/node_modules/@grpc/grpc-js/build/src/internal-channel.js:297:23Seems that @grpc/[email protected] works fine
pamoller commentedon Dec 21, 2025
Are there any plans to support Deno? Otherwise I had switch to another vector db :(