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

bug(pb): can access other service's method in multiple services #12

Open
jkskj opened this issue Jul 17, 2024 · 1 comment
Open

bug(pb): can access other service's method in multiple services #12

jkskj opened this issue Jul 17, 2024 · 1 comment

Comments

@jkskj
Copy link

jkskj commented Jul 17, 2024

Describe the bug

can access other service's method in multiple services

//	kitexcall -idl-path  idl/echo.proto -m One/Two -d '{}' -e 127.0.0.1:10001
//	[Status]: Success
//	{
//    	"message": "two"
//	}
message Request{

}

message Response{
    string message = 1;
}

service One {
    rpc One (Request) returns (Response) {}
}

service Two {
    rpc Two (Request) returns (Response) {}
}

and fail using -transport TTHeader

//	kitexcall -idl-path  idl/echo.proto -m One/Two -d '{}' -e 127.0.0.1:10001 -transport TTHeader
//	[Status]: Failed
//	[ServerError]: RPC call failed: remote or network error: default codec read failed: EOF peer close

To Reproduce

Steps to reproduce the behavior:

  1. Clone https://github.com/jkskj/multiple
  2. run main.go
  3. Command kitexcall -idl-path idl/echo.proto -m One/Two -d '{}' -e 127.0.0.1:10001

Expected behavior

Screenshots

Kitex version:

v0.10.1

Environment:

Additional context

I also test other cases and record in https://github.com/jkskj/multiple/blob/main/main.go ,maybe useful for #7 and #8 .

@YangruiEmma
Copy link

Yes, currently it does not support multi service, it is in our plan
if there are not many methods, it is recommended to define methods in one service

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