kitex-contrib / kitexcall

A command line tool for sending requests using kitex
Apache License 2.0
15 stars 5 forks source link

bug(pb): only a partial response was returned #6

Closed a631807682 closed 4 months ago

a631807682 commented 4 months ago

Describe the bug

The response does not appear to contain content of type message.

To Reproduce

idl

message GetUserListResp {
  int64 count = 1;
  repeated User user_list = 2;
}

return by kitexcall

[Status]: Success
{
    "count": 35
}

Expected behavior

Returns the complete response result

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

Imported google.protobuf.Timestamp so dose not use fastpb.

Zzhiter commented 4 months ago

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

a631807682 commented 4 months ago

The description is incorrect, may be related to type conversion.