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

使用srpc工具创建的rpc项目无法工作 #414

Open
biotite41 opened this issue Dec 13, 2024 · 3 comments
Open

使用srpc工具创建的rpc项目无法工作 #414

biotite41 opened this issue Dec 13, 2024 · 3 comments

Comments

@biotite41
Copy link

rpc项目编译后生成了server和client服务端,我怀疑是否是配置文件导致的错误,我只更改了服务端配置的端口4399,客户端配置的remoteip是127.0.0.1.端口是4399。在客户端启动后无法和服务端通信,我只写了一个注册函数,客户端启动几秒后报错

^C[kola@remote rpc_example]$ ./client 
UserService Signup status[100] error[110] errmsg:System Error. Use get_error() to get errno
==============================
[SPAN_LOG] trace_id: 00a08e1feb38410002a08e1feb384100 span_id: 04a08e1feb384100 rpc.error: 110 rpc.method: Signup rpc.service: UserService rpc.state: 100 component: srpc compress.type: 0 data.type: 0 span.kind: srpc.client start_time: 1734095360870928665 finish_time: 1734095380959567993 duration: 20088639328(ns)

image

@holmes1412
Copy link
Contributor

hi,可以把你生成的命令贴一下嘛?我试试看有没有问题

@biotite41
Copy link
Author

srpc rpc rpc_example -f ./test.proto , 我把srpc放到了/usr/local/bin下面

@holmes1412
Copy link
Contributor

holmes1412 commented Dec 16, 2024

不好意思,确认了下,确实是内部加了一个transport_type忘了设置默认值,导致的错误。这个PR已经修复了:#415

麻烦merge了之后再拉新版本试试,感谢报bug!

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

2 participants