无法连接到 Solana 开发网/测试网

发布于 2025-01-19 18:36:09 字数 633 浏览 0 评论 0原文

我一直在尝试通过 cli 和 python solana SDK 连接到 solana devnet/testnet,但都没有成功,从 CLI 收到以下错误:

“错误:RPC 请求错误:集群版本查询失败:发送 url 请求时出错(https://api.devnet.solana.com/):操作超时”

并且来自 python SDK:

“requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.devnet.solana.com', port=443): url 超过最大重试次数: / (由 NewConnectionError('引起) :无法建立新连接:[Errno 101] 网络状态无法访问'))"

我可以使用与 CLI 相同的方法连接到本地主机。奇怪的是,我什至无法通过谷歌搜索找到类似的问题,所以我不得不自己在这里问。

任何帮助将不胜感激。

I've been trying to connect to solana devnet/testnet through cli and python solana SDK, but both without success, getting below error from CLI:

"Error: RPC request error: cluster version query failed: error sending request for url (https://api.devnet.solana.com/): operation timed out"

and from python SDK:

"requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.devnet.solana.com', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f492ffa4490>: Failed to establish a new connection: [Errno 101] Network is unreachable'))"

I CAN connect to localhost using the same method with CLI. Strangely, I can't even find similar issues by googling, so I had to ask here by myself.

Any help will be much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文