Cannot read property 'rpcCall' of undefined
See original GitHub issueInjector 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:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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 yourprotoc-gen-grpc-web
plugin to the latest 1.0.4 release.