Python grpc升级后,客户端中的grpc服务器流意外终止

Python grpc升级后,客户端中的grpc服务器流意外终止,python,grpc,Python,Grpc,我有一个简单的grpcpython应用程序,用于侦听和处理服务器流消息。基本上,它看起来像: # creating the server RPC stream from stub notification_stream = stub.GetNotification( filter ) try: for notification in notification_stream: # do something with received notification

我有一个简单的grpcpython应用程序,用于侦听和处理服务器流消息。基本上,它看起来像:

# creating the server RPC stream from stub
notification_stream = stub.GetNotification( filter )
try:
    for notification in notification_stream:
        #  do something with received notification
        print "Got {0}".format(notification) 
except Exception:
    print "Got exception"
    raise
print "terminated"
它与GRPCv1.7配合使用效果很好。但是在v1.18下,对于新生成的客户端代码,
通知流将在从服务器接收到第一条消息后立即终止。检查服务器端(C++中的GRPCv1.18),我们发现它在调用
gRPC::ServerReaderWriter::Read(R*msg)
返回false(表示流已完成、取消或失败)。结果,客户端没有收到异常(StatusCode.OK),只是终止了。现在,我们必须在服务器处于v1.18时将客户端恢复到v1.7

鉴于双方成功地交换了一条信息,我不知道会发生什么问题。在第一条消息发出后,我是否有办法在客户端获得关于gRPC内部发生的事情的更多信息