我已经在python中使用proto创建了grpc客户端和服务器。我低于错误。任何人都知道为什么我们会收到此错误?如何在grpc clien和服务器中处理流数据?
status = StatusCode.UNKNOWN
details = "Exception iterating requests!"
debug_error_string = "None"
def sendData(self, request, context):
details = any.Any(type_url="type url", value=b'value')
return status_pb2.Status(code=200, message="fdf", details=[details])
def sendData(self):
user = data_messages_pb2.user(id="12", type="1232")
response = self.stub.UploadData(data_messages_pb2.data(id='123', user=user, data=b'123'))