博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
composer - No business network has been specified for this connection 解决方案
阅读量:7046 次
发布时间:2019-06-28

本文共 3421 字,大约阅读时间需要 11 分钟。

I have installed hyperledger composer locally. But on localhost it gives error :

Error : Error trying to ping.

Error: No business network has been specified for this connection.

I am not able to add model and script file as well.

This is the errors showing in terminal

error: [Hyperledger-Composer] undefined:HLFConnection            :ping()                    Error: Error trying to ping. Error: No business network has been specified for this connectionat _checkRuntimeVersions.then.catch (/usr/local/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:787:34)at 
at runMicrotasksCallback (internal/process/next_tick.js:121:5)at _combinedTickCallback (internal/process/next_tick.js:131:7)at process._tickCallback (internal/process/next_tick.js:180:9) error: [Hyperledger-Composer] undefined:ConnectorServer :Error: Error trying to pi
  •  
    There is not enough information here to be able to help you. Please can you provide details of what you are trying to do and how you are doing it, for example the commands you have entered. Otherwise it is impossible to provide answers
  •  
    Did you ever find out what the problem was and if so what did you do to resolve it? I'm running into this and I'm not sure why it's wrong. Steps followed as given here  

I think I solved this problem.

About the error

The error reason is No business network has been specified for this connection., this does not happen when you first time to run composer-playground, because that time, you truly do not have a network and you either do not have card too, so there is a modal pop up Let's blockchain.

This only happened when you stop/delete your business network net, or there is no business network running but you also have the business card linked to the network.

Solution

  1. Follow the tutorial to create a new business network locally
  2. restart your farbric tool by stopFabric.sh and startFabric.sh, (* this is not to start your business network but your fabric)
  3. run your playground again composer-playground
  4. probably you will also see the error again (error trying to ping), but no worry
  5. find a button at top right corner which is folded My Business Networks
  6. delete the card without connection or deploy a new network

This worked for me, hope it will work for you too. This kind of process design limitation, the card is still there even you delete your network or your are trying to start your playground even you did not start your network. This is why this error happened I think.

Addition, More about playground

Hyperledger Composer Playground (Playground from now on) uses your browser's local storage to simulate the blockchain network's state storage, which means you don't need to run a real validating peer network to use Playground.

Using browser-only mode, you can model and test the business network using a mock blockchain ledger that resides in your browser's local storage.

How to delete cache in browser Chrome

This probably can solve many errors.

In Chrome, for example, under Settings > Advanced > Content Settings > Cookies > All cookies and site data > localhost, click the trashcan icon to remove local storage. If you're using a different browser, follow the instructions specific to that browser, and delete all local storage.

References

  • , just old, need to be pay attention to that some commands not working in the same way on new version of composer

转载地址:http://iozol.baihongyu.com/

你可能感兴趣的文章
linux关闭防火墙及开放端口
查看>>
Git常见用法
查看>>
「镁客·请讲」星逻智能王海滨:为无人机提供特斯拉服务,实现“无人化”操作 ...
查看>>
Spring AOP 实现原理
查看>>
BlockingQueue与Condition原理解析
查看>>
Nginx安全优化
查看>>
DilatedNet - 扩张卷积(语义分割)
查看>>
强化学习基础-对偶梯度上升
查看>>
设计模式——单例模式
查看>>
5G不是原子弹,任正非感谢美国帮忙宣传华为
查看>>
C++面向对象高级编程(上) 第二周 侯捷
查看>>
Spring Cloud Greenwich 新特性和F升级分享
查看>>
发现可远程控制玩家电脑的Steam漏洞,Valve 7500美元奖励上报人 ...
查看>>
0110-如何给Kerberos环境下的CDH集群添加Gateway节点
查看>>
正火的 Spring Boot 2.0 更新了啥?
查看>>
Kubernetes(K8s)Events介绍(上)
查看>>
Apsara SA系列混合云存储阵列发布
查看>>
携新一代车规级固态激光雷达而来,速腾聚创为助力自动驾驶量产有何新动作?...
查看>>
RStudio: Warning message: Setting LC_CTYPE failed, using "C" 浅析
查看>>
VDSM command failed: The method does not exist / is not available.
查看>>