Hyperledger fabric 使用fabric v1.2启动hyperledger explorer时出错
启动资源管理器时出现以下错误:Hyperledger fabric 使用fabric v1.2启动hyperledger explorer时出错,hyperledger-fabric,hyperledger-explorer,Hyperledger Fabric,Hyperledger Explorer,启动资源管理器时出现以下错误: <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>> TypeError: Cannot read proper
<<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>>
TypeError: Cannot read property 'size' of undefined
at Platform.initialize (/home/kp/Desktop/blockchain-explorer/app/platform/fabric/Platform.js:52:45)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Received kill signal, shutting down gracefully
Closed out connections
},,
“configtxgenToolPath”:“/home/kp/Desktop/bct/fabric samples/bin/”,
“许可证”:“Apache-2.0”
}
根据Platform.js,这意味着由于某种原因无法加载config.json。您需要从以下角度进行查看:
- 检查日志/app/app.log
- 与orignal config.json的区别
{
"network-configs": {
"network-1": {
"clients": {
"client-1": {
"tlsEnable": false,
^^^^^
你有解决这个问题的办法吗? 我用link一步一步地部署了Hyperledger Explorer 我和你犯了同样的错误
我与fabric v1.2和composer v0.20.0一起使用,我得到了相同的错误,在我这方面,缺少标记“network configs”。 在控制台日志中,就在这个错误之前,我收到一条消息,上面说“******已为hyperledger fabric platform启动初始化*******,”,未定义 如果您检查了platform.js中的代码,您可以看到未定义的变量对应于网络配置 我在原始文件夹中创建了一个简单的config.json文件,如下所示: { 然后我创建了一个完整的配置文件,从 {
我不确定是否真的有必要拆分文件,但无论如何,在我这方面,此过程解决了问题。您找到解决方案了吗?我在过去的一周里一直在做同样的事情。不走运(您好,我降级到hlf11、composer 19和explorer 3.3。它可以正常工作,还请确保您在github上阅读了正确的read me。与相应分支的特定版本类似,请回答一个单独的问题
TypeError: Cannot read property 'size' of undefined
at Platform.initialize (/home/kp/Desktop/blockchain-explorer/app/platform/fabric/Platform.js:52:45)
{
"network-configs": {
"network-1": {
"clients": {
"client-1": {
"tlsEnable": false,
^^^^^
"network-configs": {
"first-network": {
"name": "firstnetwork",
"profile": "./connection-profile/first-network.json",
"enableAuthentication": false
}
},
"license": "Apache-2.0"
"name": "first-network",
"version": "1.0.0",