gpt4 book ai didi

blockchain - super 账本 Composer : No business network has been specified for this connection

转载 作者:行者123 更新时间:2023-12-02 18:49:47 26 4
gpt4 key购买 nike

我已在本地安装了 Hyperledger Composer。但在本地主机上它给出错误:

Error : Error trying to ping.

Error: No business network has beenspecified for this connection.

我也无法添加模型和脚本文件。

这是终端中显示的错误

error: [Hyperledger-Composer] undefined:HLFConnection            :ping()                    Error: Error trying to ping. Error: No business network has been specified for this connection
at _checkRuntimeVersions.then.catch (/usr/local/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:787:34)
at <anonymous>
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

最佳答案

我想我解决了这个问题。

关于错误

错误原因是没有为此连接指定业务网络。,当您第一次运行composer-playground时,不会发生这种情况,因为那时,您确实没有网络,也没有,因此会弹出一个模式让我们区 block 链

只有当您停止/删除您的业务网络,或者没有正在运行的业务网络,但您的名片也链接到该网络时,才会发生这种情况。

解决方案

  1. 按照教程在本地创建新的业务网络
  2. 通过 stopFabric.shstartFabric.sh 重新启动您的 Farbric 工具(*这不是启动您的业务网络,而是启动您的 Fabric)
  3. 再次运行你的 Playground composer-playground
  4. 您可能还会再次看到该错误(尝试 ping 时出错),但不用担心
  5. 在右上角找到一个折叠的按钮我的业务网络
  6. 删除没有连接的卡部署新网络

这对我有用,希望对你也有用。这种流程设计的限制,即使你删除了你的网络,卡仍然存在,或者即使你没有启动你的网络,你正在尝试启动你的 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.

如何删除Chrome浏览器中的缓存

这可能可以解决许多错误。

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.

引用文献

关于blockchain - super 账本 Composer : No business network has been specified for this connection,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47599375/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com