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

shorturl例子有点大出入? #128

Open
yinwhm12 opened this issue Apr 6, 2022 · 3 comments
Open

shorturl例子有点大出入? #128

yinwhm12 opened this issue Apr 6, 2022 · 3 comments

Comments

@yinwhm12
Copy link

yinwhm12 commented Apr 6, 2022

https://github.com/zeromicro/zero-doc/blob/main/doc/shorturl.md
本人初学者,当然走到第六步的时候,发现出错了(可能是新手).

  1. "goctl rpc proto -src transform.proto -dir ." 报错,"no proto topic";
    改成
    goctl rpc protoc .\transform.proto --go_out=. --go-grpc_out=. --zrpc_out=.
    生成的文件如下:
    image
    没有向教程那般(可能是版本问题)

  2. go run .\transform.go -f .\etc\transform.yaml 报错:
    image

请问大佬,能否跟进维护一下,不然,向我这样的初学者,好难呀!!!~
先谢谢大佬,麻烦看看呀~

@yinwhm12
Copy link
Author

yinwhm12 commented Apr 6, 2022

环境:
module shorturl

go 1.18

require (
github.com/zeromicro/go-zero v1.3.0
google.golang.org/grpc v1.43.0
google.golang.org/protobuf v1.27.1
)

@capyun
Copy link

capyun commented Apr 8, 2022

+1

@yapinxxx
Copy link
Contributor

https://github.com/zeromicro/zero-doc/blob/main/doc/shorturl.md 本人初学者,当然走到第六步的时候,发现出错了(可能是新手).

1. "goctl rpc proto -src transform.proto -dir ." 报错,"no proto topic";
   改成
   goctl rpc protoc .\transform.proto --go_out=. --go-grpc_out=. --zrpc_out=.
   生成的文件如下:
   ![image](https://user-images.githubusercontent.com/25929417/161940107-fe781f42-cf27-4e95-88d8-fdbe7868de93.png)
   没有向教程那般(可能是版本问题)

2. go run .\transform.go -f .\etc\transform.yaml 报错:
   ![image](https://user-images.githubusercontent.com/25929417/161940748-f6ac2401-660b-44c2-b4c8-a10adfdaaa3c.png)

请问大佬,能否跟进维护一下,不然,向我这样的初学者,好难呀!!!~ 先谢谢大佬,麻烦看看呀~

According to the error message, maybe your etcd-server didn't work.
Please check whether open the etcd-server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants