作者:Tong-david | 来源:互联网 | 2023-05-18 11:58
ImusingGoogleCloudEndPointstoaccessmyGRPCserverwritteninGoLangthatruninKuberkules.
I'm using Google Cloud EndPoints to access my GRPC server written in GoLang that run in Kuberkules. I was following the tutorial for here. Everythings is working but when i try to the a request i got this error
我正在使用Google Cloud EndPoints访问使用Kuberkules运行的GoLang编写的GRPC服务器。我在这里按照教程。 Everythings工作,但当我尝试一个请求时,我得到了这个错误
rpc error: code = NotFound desc = Method does not exist.
rpc错误:code = NotFound desc =方法不存在。
The EndPoint does not have the save URL has the one in my proto file , the have the package include in the name. Here is an exemple :
EndPoint没有保存URL在我的proto文件中有一个,包含在名称中的包。这是一个例子:
log request
记录请求
on the last request i change the value of the url in the generated protobuf file, it pass the endpoint but my server dont recognize it ... I got this error instead :
在最后一个请求我更改生成的protobuf文件中的URL的值,它通过端点,但我的服务器不认识它...我得到此错误:
rpc error: code = Unimplemented desc = unknown service client.WebRoute
protobuf generated code
protobuf生成的代码
It was working locally , this is probably an issue about the descriptor files needed to generate the endpoints.
它在本地工作,这可能是生成端点所需的描述符文件的问题。
1 个解决方案