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): return miss method when accessing multiple services #7

Open
a631807682 opened this issue Jun 4, 2024 · 2 comments
Open

bug(pb): return miss method when accessing multiple services #7

a631807682 opened this issue Jun 4, 2024 · 2 comments

Comments

@a631807682
Copy link

Describe the bug

Return miss method when accessing multiple services.

To Reproduce

idl

service ServiceA {
	rpc Method1 ...
}

service ServiceB {
	rpc Method2 ...
}

cmd

kitexcall  -idl-path  xxx.proto -m ServiceA/Method1 -d '{}' -e ...

return

[Status]: Failed
[ServerError]: RPC call failed: missing method: Method1 in service

Expected behavior

Screenshots

Kitex version:

v0.7.1

Environment:

GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/xx/Library/Caches/go-build"
GOENV="/Users/xx/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/xx/.gvm/pkgsets/go1.20.2/global/pkg/mod"
GOOS="darwin"
GOPATH="/Users/xx/.gvm/pkgsets/go1.20.2/global"
GOPROXY="https://goproxy.cn,direct"
GOROOT="/Users/xx/.gvm/gos/go1.20.2"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/xx/.gvm/gos/go1.20.2/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20.2"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/xd/4bn135c91vvdn52yvmq0m_r00000gn/T/go-build837636611=/tmp/go-build -gno-record-gcc-switches -fno-common"

Additional context

@Zzhiter
Copy link
Collaborator

Zzhiter commented Jun 4, 2024

@a631807682 Thanks for your feedback. Are there the full IDL and the generated server code? It is difficult to reproduce this error with the information you provided.

@felix021
Copy link
Contributor

felix021 commented Jun 6, 2024

  1. Make sure your Kitex server using github.com/cloudwego/kitex >= v0.9.0 which has full multiservice support on Thrift/KitexProtobuf (non-grpc)
  2. Remember to specify TTHeader or TTHeaderFramed as transport with kitexcall's -t argument
  3. Kitexcall will improve user experience as stated in Proposal: Enhancement of kitexcall‘s warning info for MultiService Support #8

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