调用chaincode时出错:eventhub ::错误:14 UNAVAILABLE:连接失败

时间:2018-05-03 10:39:13

标签: node.js hyperledger-fabric hyperledger

在调用链码时我得到以下错误。同行们都很好并且工作正常。任何人都可以告诉我出了什么问题"?

的package.json

   {
    "name": "Blockchain",
    "version": "1.0.1",
    "description": "Hyperledger Fabric Application",
    "main": "app.js",
    "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
    },
    "dependencies": {
        "fabric-ca-client": "1.1.0",
        "fabric-client": "1.1.0",
        "grpc": "^1.9.0"
    },
    "author": "ret",
    "license": "Apache-2.0",
    "keywords": [
        "Hyperledger",
        "Fabric",
    ]
}

错误:

Failed to invoke successfully :: Error: There was a problem with the eventhub ::Error: 14 UNAVAILABLE: Connect Failed

1 个答案:

答案 0 :(得分:-1)

错误是由于事件侦听器地址的端口映射不正确造成的。在映射调用代码中的右端口时,我能够获得所需的结果。