Error invoking chaincode: eventhub ::Error: 14 UNAVAILABLE: Connect Failed

Error invoking chaincode: eventhub ::Error: 14 UNAVAILABLE: Connect Failed

在调用链代码时,我在下面获得 error.The 对等点都已启动并正在工作 fine.Can 有人告诉我出了什么问题吗?

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

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