We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
前提:使用kitex框架,客户端和服务端通信,使用grpc协议
Not Found: HTTP status code 404; transport: missing content-type field
请问初始化客户端时,需要调整什么参数,才能顺利打到服务端,目前是这些参数
client.WithTransportProtocol(transport.GRPC), client.WithRPCTimeout(time.Second * 3), client.WithConnectTimeout(time.Millisecond * 500), client.WithFailureRetry(retry.NewFailurePolicy()), client.WithErrorHandler(ClientErrorHandler), client.WithGRPCKeepaliveParams(grpc.ClientKeepalive{ // 只有GRPC才可以使用 Time: ktime, Timeout: ktimeout, PermitWithoutStream: permitWithoutStream, }), client.WithHostPorts(addrs...),
The text was updated successfully, but these errors were encountered:
这个就是完整的报错信息么?在 NewStream 时报的错? Not Found: HTTP status code 404; transport: missing content-type field
Sorry, something went wrong.
在客户端调用相关的RPC接口的时候的报错
@zhouguanglong1 Is this the complete error message? May I see how you print the error message?
@Marina-Sakai this is RPC request:
func (p *kFeeServiceClient) UserTradeInfo(ctx context.Context, Req *fee.Request, callOptions ...callopt.Option) (r *fee.Response, err error) { ctx = client.NewCtxWithCallOptions(ctx, callOptions) return p.kClient.UserTradeInfo(ctx, Req) }
and it returns error Not Found: HTTP status code 404; transport: missing content-type field
No branches or pull requests
前提:使用kitex框架,客户端和服务端通信,使用grpc协议
请问初始化客户端时,需要调整什么参数,才能顺利打到服务端,目前是这些参数
The text was updated successfully, but these errors were encountered: