> ETIMEDOUT 130.211.126.102:50051
# spicedb
y
> ETIMEDOUT 130.211.126.102:50051 that part makes me think that you're trying to talk over 0.0.0.0 instead of localhost, and your port isn't exposed on 0.0.0.0
s
import { v1 } from '@authzed/authzed-node'; const { promises: client } = v1.NewClient( 'shubham_08_12_1990', 'grpc.authzed.com:50051', // NOTE: Remove if SpiceDB is behind TLS v1.ClientSecurity.INSECURE_LOCALHOST_ALLOWED );
y
grpc.authzed.com uses TLS, so you want to remove the INSECURE option
s
hey @yetitwo still same i tried all 3 options SECURE INSECURE_LOCALHOST_ALLOWED INSECURE_PLAINTEXT_CREDENTIALS still same result
y
you want
Copy code
const { promises: client } = v1.NewClient(
  'shubham_08_12_1990',
  'grpc.authzed.com:50051',
);
if your intention is to talk to serverless
s
I’ve already tried that as well. I’m running SpiceDB locally using the Docker image, and I’m able to connect using zed by passing the --insecure flag.
y
then you're not trying to talk to serverless 😛
you'll need to change the second arg to point at wherever you've exposed SpiceDB
it should match what's in your zed context
s
Thanks alot
2 Views