ERROR: 2020/07/28 17:05:54 grpc: server failed to encode response: rpc error: code = Internal desc = grpc: error while marshaling: proto: Marshal called with nil
原因是返回值为nil, 将返回值设置回需要返回的结构即可, 发现返回成功, 其实原因是grpc传输经过一程编码,由于返回值结构为nil, 导致了编码失败
ERROR: 2020/07/28 17:05:54 grpc: server failed to encode response: rpc error: code = Internal desc = grpc: error while marshaling: proto: Marshal called with nil
原因是返回值为nil, 将返回值设置回需要返回的结构即可, 发现返回成功, 其实原因是grpc传输经过一程编码,由于返回值结构为nil, 导致了编码失败