-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Is the example rpcImpl in the README.md correct? #1229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I spent about a day's worth of work before figuring this out on my own. I searched here to find that I'm not the only one. Is this the correct way? If so, we should update the example. |
|
@longility syntax = "proto3";` if you will use this in your proto file then you will get method.parent |
I do have that @Mohammad-Khalid23 . I'm generating my code like this, which works, but maybe I'm missing something:
I followed this: https://www.npmjs.com/package/protobufjs#pbts-for-typescript |
Yeah, I ran into this today as well. I don't have any parent value either. Assuming that there are indeed some cases where that parent value isn't present, isn't this an actual problem with the library, rather than just with the example? Or is the intended usage pattern to capture the namespace & service class in the RPC implementation? That would seem a bit odd to me, given that the name is passed in already. |
I have the same problem. Is it resolved? |
Correct, this example is no longer accurate. Even the gRPC library is updated and now has more fields on |
For f’s sake, since 2021 nobody updated the docs nor solved this issue. Do we really have to manually hack our paths in the fng call, or there is another ticket hidden from the internet that explains how it’s supposed to be used in 2024? |
The example given is:
That gives a method call to the path "SayHello" which won't actually work against the helloworld example server - it needs to include the namespace and service in the path: "/helloworld.Greeter/SayHello".
The below seems to work for me:
The text was updated successfully, but these errors were encountered: