【发布时间】: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。
我尝试使用http://xxx.xxx.xxx.xxx:8000/substrate-front-end-template进行连接
在我的浏览器中,我得到了。 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