我正在尝试在 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"
}
}
}