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

etcd in the gateway configuration cannot inherit the defined #3925

Open
eyjian opened this issue Feb 21, 2024 · 1 comment
Open

etcd in the gateway configuration cannot inherit the defined #3925

eyjian opened this issue Feb 21, 2024 · 1 comment
Assignees
Labels
kind/bug Something isn't working

Comments

@eyjian
Copy link

eyjian commented Feb 21, 2024

Do not configure Hosts in Upstreams:

Etcd:
  Hosts:
    - 127.0.0.1:2379

Login: # Login service client conf
  Prefix: /v1
  Etcd:
    Key: mooonlogin.rpc

Auth: # Authentication service client conf
  Prefix: /v2
  Etcd:
    Key: mooonauth.rpc

Upstreams: # upstreams
  - Grpc:
      Etcd:
        #Hosts:
        #  - 127.0.0.1:2379
        Key: mooonlogin.rpc

Error when running:

config file etc/gateway.yaml, type mismatch for field "Upstreams[0].Grpc.etcd.Hosts"
@kevwan kevwan self-assigned this Feb 25, 2024
@kevwan kevwan added the kind/bug Something isn't working label Feb 25, 2024
@Guvanchhojamov
Copy link

Hi @eyjian,
Why you comment this part:

# Hosts:
   #  - 127.0.0.1:2379

Have you tried without comments?
And you can see gateway docs:
https://github.com/zeromicro/go-zero/blob/master/gateway/readme.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants