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

Response type not resolved in service methods #497

subk opened this Issue Nov 28, 2016 · 0 comments


None yet
2 participants

subk commented Nov 28, 2016

Calling resolve() on a service method properly set resolvedRequestType but resolvedResponseType is always null.

.proto :

syntax = "proto3";

package example1;

message MyRequest {
  string foo = 1;
message MyResponse {
  string bar = 1;
service MyTestService {
  rpc getTest(MyRequest) returns (MyResponse);

.js :

  .then(root => {
    const service = root.lookup('example1.MyTestService');
    for (let name in service.methods) {
      const method = service.methods[name];
      console.log(method.resolvedRequestType instanceof protobuf.Type);
      console.log(method.resolvedResponseType instanceof protobuf.Type);

output :


@dcodeIO dcodeIO closed this in 96dd8f1 Nov 28, 2016

dcodeIO added a commit that referenced this issue Nov 28, 2016

Merge pull request #498 from subk/master
set resolvedResponseType on resolve(), fixes #497

@dcodeIO dcodeIO added the bug label Nov 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment