当前位置:网站首页>解决rpc error: code = Unimplemented desc = method CheckLicense not implemented
解决rpc error: code = Unimplemented desc = method CheckLicense not implemented
2022-07-31 09:21:00 【_七里香】
调用rpc解决时报该错误,检查了一圈,包名对着,proto文件也一样,注册方式也对着
实在很纳闷,最终才发现了一点猫腻...
我写了两个struct将proto.UnimplementedServiceServer组合进去了;
各个接口的接收者用的是第二个struct,而注册时register的参数为第一个,这就很caodan了,找半天原来是这个原因!
删掉其中一个,让注册的struct和各个接口的接收者用相同的结构体即可。
边栏推荐
猜你喜欢
随机推荐
qt pass custom structure parameters in different threads
关于挂载EXfat文件格式U盘失败的问题
Binary tree search and backtracking problem (leetcode)
Scala基础【seq、set、map、元组、WordCount、队列、并行】
Redis Sentinel原理
VMware下安装win10
Browser usage ratio js radar chart
ARC在编译和运行做了什么?
loadrunner-controller-场景执行run
JSP application对象简介说明
Pytorch学习记录(七):自定义模型 & Auto-Encoders
PyQt5快速开发与实战 9.4 Matplotlib在PyQt中的应用
高并发高可用高性能的解决方案
【NLP】Transformer理论解读
手写promise
loadrunner-Controller负载测试-各模块功能记录01测试场景设计
[NLP] Interpretation of Transformer Theory
安装gnome-screenshot截图工具
数字加分隔符
JSP config对象的简介说明