Skip to content
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

TypeError: Cannot read property 'forEach' of undefined #2

Open
l3ender opened this issue Mar 19, 2020 · 1 comment
Open

TypeError: Cannot read property 'forEach' of undefined #2

l3ender opened this issue Mar 19, 2020 · 1 comment

Comments

@l3ender
Copy link

l3ender commented Mar 19, 2020

I'm getting an error trying to use gcall. I cloned the repo and am trying to run one of the provided test protos and am getting the following error:

-> gcall -p ./test/protos/route_guide.proto
/Users/ross/.nvm/versions/node/v12.13.1/lib/node_modules/gcall/gcall.js:98
  gservice.methods.forEach(md => console.log(getCallDescription(md)))
                   ^

TypeError: Cannot read property 'forEach' of undefined
    at Object.<anonymous> (/Users/ross/.nvm/versions/node/v12.13.1/lib/node_modules/gcall/gcall.js:98:20)
    at Module._compile (internal/modules/cjs/loader.js:959:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11

NPM details (through NVM):

-> nvm --version
0.35.1

-> npm --version
6.12.1

Running on Mac OSX Catalina 10.15.3.

@70747H
Copy link

70747H commented Mar 16, 2021

@l3ender
I had the same issue and it worked with me after providing the host and the function to be called
ex:
gcall -p ~/dev/playground/nest-grpc/src/service/hello.proto -h localhost:5000 findOne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants