更新时间:2023-02-14 21:06:25
我想我解决了这个问题.
I think I solved this problem.
错误原因是No business network has been specified for this connection.
,当您第一次运行composer-playground
时不会发生这种情况,因为那一次,您确实没有网络,也没有卡也是如此,因此有一个模式弹出Let's blockchain
.
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.
business network
stopFabric.sh
和startFabric.sh
重新启动Farbric工具,(*这不是启动业务网络,而是启动结构)composer-playground
error trying to ping
),但不用担心My Business Networks
delete the card without connection
或deploy a new network
business network
locallystopFabric.sh
and startFabric.sh
, (* this is not to start your business network but your fabric)composer-playground
error trying to ping
), but no worryMy Business Networks
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.
Hyperledger Composer Playground(即现在的Playground)使用您的 浏览器的本地存储以模拟区块链网络的状态 存储,这意味着您无需运行真正的验证对等方 网络以使用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.
这可能可以解决许多错误.
This probably can solve many errors.
例如,在Chrome中,在设置">高级">内容设置"> Cookies>所有cookie和站点数据> localhost,单击垃圾箱 图标删除本地存储.如果您使用其他浏览器, 按照特定于该浏览器的说明进行操作,并删除所有本地 存储.
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.