douxiawei9318 2018-04-25 05:10
浏览 163

无法使用python客户端连接到go grpc服务器

I have a grpc server running in Go. I am not able to call a method into it using the python client. Not sure what is going wrong. I get the following error

_Rendezvous of RPC that terminated with (StatusCode.UNIMPLEMENTED, method: /com.test/myMethod)>

Any idea what could have gone wrong? The Go client is able to communicate properly.

Also I generated the stubs following the instructions https://grpc.io/docs/tutorials/basic/python.html

python -m grpc_tools.protoc -I../../protos --python_out=. --grpc_python_out=. ../../protos/route_guide.proto

Once I got the py files, I removed the proto files and zipped the package. This zipped package is what I am using for my python client. Is there anything wrong?

  • 写回答

1条回答 默认 最新

  • dongzha0813 2018-04-26 12:43
    关注

    Sometimes I get StatusCode.UNIMPLEMENTED when the version of the protocol buffer files used by the client and the by server are in a inconsistent status.

    For example I made a change in the proto buffer file in the server but I forgot to change the proto buffer file in the client.

    I don't know if this can help but sometime it happened to me.

    评论

报告相同问题?

悬赏问题

  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突