0

我正在尝试在 IBM Blockchain Platform 上运行的网络上运行 Hyperledger Explorer。对等体在端口 7051 上运行。当我在连接配置文件中使用指定端口 7051 时,应用程序抛出错误。

[2020-11-20T14:57:26.551] [ERROR] FabricClient - Error: Missing port parameter
explorer.mynetwork.com      |     at module.exports.checkParameter (/opt/explorer/node_modules/fabric-common/lib/Utils.js:631:8)
explorer.mynetwork.com      |     at DiscoveryService._buildUrl (/opt/explorer/node_modules/fabric-common/lib/DiscoveryService.js:663:58)
explorer.mynetwork.com      |     at DiscoveryService._buildPeer (/opt/explorer/node_modules/fabric-common/lib/DiscoveryService.js:633:20)
explorer.mynetwork.com      |     at DiscoveryService._processPeers (/opt/explorer/node_modules/fabric-common/lib/DiscoveryService.js:553:15)
explorer.mynetwork.com      |     at DiscoveryService._processMembership (/opt/explorer/node_modules/fabric-common/lib/DiscoveryService.js:505:42)
explorer.mynetwork.com      |     at DiscoveryService.send (/opt/explorer/node_modules/fabric-common/lib/DiscoveryService.js:334:55)
explorer.mynetwork.com      |     at process._tickCallback (internal/process/next_tick.js:68:7)

我已经指定了端口号和对等 url

"peers": {
    "xx-xx-xx-peer-x": {
        "url": "grpcs://xx-xx-xx-peer-x:443",
        "tlsCACerts": {
            "path": "/opt/explorer/app/platform/fabric/certs/peer1.crt"
        },
        "grpcOptions": {
            "ssl-target-name-override": "xx-xx-xx-peer-x"
        }
    }
}
4

1 回答 1

0

我也遇到了这个错误,我理解在这些更晦涩的点上使用如此少的文档是多么令人沮丧。当然,我是从二进制文件构建我的网络,而不是像你这样的 IBM 平台,但我觉得这与我的问题非常相似,因此值得你尝试这个解决方案:我能够通过使确保我所有的 Anchor Peers 在他们各自的core.yaml文件中都peer.gossip.externalEndpoint填写了他们的值,不仅是地址,还有端口。这将是<Address>:<Port>.

于 2020-11-29T06:59:42.217 回答