【问题标题】:Trying to access Substrate node through substrate-front-end-template Error { "isTrusted": true }尝试通过substrate-front-end-template访问Substrate节点错误{“isTrusted”:true}
【发布时间】:2021-10-29 01:34:01
【问题描述】:

我正在尝试通过浏览器窗口访问基板前端模板,但出现以下错误。我正在使用带有 Ubuntu 20.04 的 VPS 这是我的结果 我用这个开始我的节点。

./target/release/node-template --dev --unsafe-ws-external --rpc-cors all --rpc-external --rpc-methods=Unsafe

然后我在 substrate-front-end-template 目录中启动 yarn。

Yarn Started

我尝试使用http://xxx.xxx.xxx.xxx:8000/substrate-front-end-template进行连接

Trying to connect

在我的浏览器中,我得到了。 Using port 8000

9944

我已将 \root\substrate-front-end-template\src\config\development.json 更改为 "PROVIDER_SOCKET": "ws://xxx.xxx.xxx:9944" (这就是问题所在。)

如果有人能提供帮助,我将永远感激不尽。

更新: 总而言之,这是我自己的愚蠢错误。在文件 root\substrate-front-end-template\src\config\development.json 我没有把我服务器的完整 IP 地址放进去。我觉得很傻。感谢任何帮助过的人。

【问题讨论】:

  • 你确定你的前端模板可以看到你的节点吗?请查看浏览器的开发者控制台是否有任何错误。

标签: ubuntu browser yarnpkg substrate


【解决方案1】:

你可以试试添加

--unsafe-ws-external --rpc-cors 全部

到您的节点模板参数。

【讨论】:

  • 试过了,但不幸的是没有改变。不过感谢您的帮助。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多