首页 文章

Hyperledger作曲家休息服务器错误grep

提问于
浏览
0

我正在关注ibm docs链接的第3部分中的hyperledger composer教程:https://www.ibm.com/developerworks/cloud/library/cl-deploy-interact-extend-local-blockchain-network-with-hyperledger-composer/index.html当我执行composer-rest-server命令时,它本质上启动了其余服务器,我收到以下错误,并且不知道如何修复它 .

Discovering types from business network definition ...
/usr/local/lib/node_modules/composer-rest-server/node_modules/fabric-client/lib/ChannelEventHub.js:666
                throw error;
                ^

Error: Connection is not in the READY state
    at ChannelEventHub._checkConnection (/usr/local/lib/node_modules/composer-rest-server/node_modules/fabric-client/lib/ChannelEventHub.js:664:17)
    at ChannelEventHub.registerChaincodeEvent (/usr/local/lib/node_modules/composer-rest-server/node_modules/fabric-client/lib/ChannelEventHub.js:825:8)
    at HLFConnection._registerForChaincodeEvents (/usr/local/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:279:44)
    at HLFConnection._checkCCListener (/usr/local/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:256:22)
    at Timeout.ccListenerHandle.setTimeout [as _onTimeout] (/usr/local/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:381:35)
    at ontimeout (timers.js:482:11)
    at tryOnTimeout (timers.js:317:5)
    at Timer.listOnTimeout (timers.js:277:5)

当我尝试使用composer-rest-server生成其余服务器时会发生这种情况

1 回答

  • 1

    简短版本:使用composer-rest-server v0.19.4或更高版本

    长版本:节点的grpc最近更新为1.11并引入了重大更改 . 这个版本是由作曲家依赖的结构节点sdk自动选取的 . 从v0.19.4开始,我们进行了规避,以确保首先提取兼容版本的grpc以解决此问题 .

相关问题