grpc-consul-resolver icon indicating copy to clipboard operation
grpc-consul-resolver copied to clipboard

token error

Open pillarstone opened this issue 3 years ago • 1 comments

hello, I have a question: Consul starts ACL and passes token.

conn, err = grpc.Dial(
    fmt.Sprintf("consul://%s:%d/%s?token=%s&wait=14s&tag=%s", consulHost, consulPort, srvName, token, srvTag),
    grpc.WithTransportCredentials(insecure.NewCredentials()),
    grpc.WithDefaultServiceConfig(`{"loadBalancingPolicy": "round_robin"}`),
)

error message: "error": "rpc error: code = Unavailable desc = last resolver error: produced zero addresses"

Thanks!

pillarstone avatar Apr 16 '22 08:04 pillarstone

Hm. Let me reproduce that locally Could you please provide version for the library and consul ? Thanks

mbobakov avatar Mar 29 '23 18:03 mbobakov