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

dubbogo参数是结构体报错 #13

Open
foxdad opened this issue Nov 26, 2021 · 0 comments
Open

dubbogo参数是结构体报错 #13

foxdad opened this issue Nov 26, 2021 · 0 comments

Comments

@foxdad
Copy link

foxdad commented Nov 26, 2021

采用dubbogo官网的dubbo协议来写示例,完全把dubbo协议的示例编写后,我把官网int32 参数传递修改成结构体指针传递
type Req struct {
ID int32
}
客户端方法:GetUser func(ctx context.Context, req *Req) (*Cinema, error)

启动生产端,消费端启动就报错
2021-11-26T13:45:07.020+0800 INFO dubbo-getty@v1.4.6/session.go:580 {client:TCP_CLIENT:3:192.168.56.1:63631<->192.168.56.1:20000}, session.conn read EOF, client send over, session exit
2021-11-26T13:45:07.021+0800 INFO dubbo-getty@v1.4.6/session.go:588 {client:TCP_CLIENT:3:192.168.56.1:63631<->192.168.56.1:20000}, [session.handlePackage] gr will exit now, left gr num 0
2021-11-26T13:45:10.029+0800 INFO dubbo-getty@v1.4.6/session.go:580 {client:TCP_CLIENT:9:192.168.56.1:63642<->192.168.56.1:20000}, session.conn read EOF, client send over, session exit
2021-11-26T13:45:10.029+0800 INFO dubbo-getty@v1.4.6/session.go:588 {client:TCP_CLIENT:9:192.168.56.1:63642<->192.168.56.1:20000}, [session.handlePackage] gr will exit now, left gr num 0
2021-11-26T13:45:13.039+0800 WARN proxy/proxy.go:209 result err: maybe the client read timeout or fail to decode tcp stream in Writer.Write
panic: maybe the client read timeout or fail to decode tcp stream in Writer.Write
流不能解析

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

1 participant