question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'rpcCall' of undefined

See original GitHub issue

Injector doesn’t work and fails with:

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'rpcCall' of undefined
TypeError: Cannot read property 'rpcCall' of undefined
    at inject.js:62
    at Array.map (<anonymous>)
    at window.__GRPCWEB_DEVTOOLS__ (inject.js:61)
    at new MyFunction (myFunction.ts:24)
    .......

I suspect it comes down to how I generate grpc-web client:

protoc \
  --js_out=import_style=typescript:$OUT_DIR \
  --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$OUT_DIR ${FILE}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nielskrijgercommented, Jun 16, 2019

I was having the exact same error using the promise client. After upgrading protoc-gen-grpc-web to 1.0.4 it worked fine.

We could add a notice in the readme that the minimal supported version is 1.0.4.

1reaction
rogchapcommented, May 30, 2019

It works with PromiseClient, see the example. What version of grpc-web are you using to generate the clients? The generator changed the implementation of the promise client. Can you try upgrading your protoc-gen-grpc-web plugin to the latest 1.0.4 release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failing tests -> Cannot read properties of undefined (reading ...
program is undefined. That means this line of code has issue const program = Anchor.workspace.calculator;. Anchor capitalizes the contract name. so it ...
Read more >
TypeError: Cannot read property 'node' of undefined-node.js
Coding example for the question TypeError: Cannot read property 'node' of undefined-node.js.
Read more >
TypeError: Cannot read property 'data' of undefined
catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/ ...
Read more >
ethereum/web3.js - Gitter
I'm using angular 4 and web3.js and I have the following errors: ERROR TypeError: Cannot read property 'map' of undefined. Cannot read property...
Read more >
How to resolve the JVM start/stop issue failing with ... - IBM
Click on New and add the following property with its value set to true. ... faultCode=SOAP-ENV:ServerException; msg=The Soap RPC call can't be unmarshalled....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found