我是跟踪从这里的超分类账织物样品的平衡转移。我对它做了一点修改。我增加了第三个组织。一切都很顺利,直到我尝试用
curl -s -X POST \ http://localhost:4000/channels \ -H授权:承载“\ -H”内容-类型: application/json“\ -d '{ "channelName":"mychannel",-X }‘
我得到了下面的错误:
错误:(/home/atif/Desktop/hyper-ledger/fabric/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:255:19)\n : Orderer.js: sendBroadcast - on错误:“错误:连接失败\n在ClientDuplexStream._readsDone (/home/atif/Desktop/hyper-ledger/fabric/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:221:8)\n的ClientDuplexStream._emitStatusIfDone上在(/home/atif/Desktop/hyper-ledger/fabric/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:283:12)“2018-02-19 15:40:04.991创建-通道-错误: SERVICE_UNAVAILABLE在ClientDuplexStream.(/home/atif/Desktop/hyper-ledger/fabric/fabric-samples/balance-transfer/node_modules/fabric-client/lib/Orderer.js:141:21) at emitOne (events.js:116:13) at ClientDuplexStream.emit (events.js:211:7) at ClientDuplexStream._emitStatusIfDone (/home/atif/Desktop/hyper-ledger/fabric/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:258:12)在(/home/atif/Desktop/hyper-ledger/fabric/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:221:8) at readCallback (/home/atif/Desktop/hyper-ledger/fabric/fabric-samples/balance-transfer/node_modules/grpc/src/node/src/client.js:283:12) (节点:79777) UnhandledPromiseRejectionWarning:未处理的承诺拒绝(拒绝id: 2):错误:失败初始化通道: Error: SERVICE_UNAVAILABLE (节点:79777) DEP0018 DeprecationWarning:未处理的承诺拒绝被取消。在未来,承诺不处理的拒绝将使用非零退出代码终止Node.js进程。
https://stackoverflow.com/questions/48869557
复制相似问题