Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (12.7k points)

Failed to invoke successfully :: TypeError: Cannot read property 'getConnectivityState' of undefined /opt/share/hyperledger/node_modules/fabric-client/lib/EventHub.js:355 if(self._stream) state = self.stream.call.channel.getConnectivityState(); ^

TypeError: Cannot read property 'getConnectivityState' of undefined

    at ClientDuplexStream.<anonymous> (/opt/share/hyperledger/node_modules/fabric-client/lib/EventHub.js:355:56)

    at emitOne (events.js:116:13)

    at ClientDuplexStream.emit (events.js:211:7)

    at ClientDuplexStream._emitStatusIfDone (/opt/share/hyperledger/node_modules/grpc/src/client.js:236:12)

    at ClientDuplexStream._readsDone (/opt/share/hyperledger/node_modules/grpc/src/client.js:201:8)

    at /opt/share/hyperledger/node_modules/grpc/src/client_interceptors.js:705:15

Can anybody tell me where am i going wrong?

1 Answer

0 votes
by (29.5k points)

This is due to a new version of grpc (v1.11.0). The version is controlled by fabric-client and it takes the latest available. You need to delete the grpc module and reinstall it with npm install [email protected]. This will fix the issue.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...