Skip to content
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

token error #32

Open
pillarstone opened this issue Apr 16, 2022 · 1 comment
Open

token error #32

pillarstone opened this issue Apr 16, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pillarstone
Copy link

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!

@mbobakov
Copy link
Owner

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

@mbobakov mbobakov added the bug Something isn't working label Mar 29, 2023
@mbobakov mbobakov self-assigned this Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants