【问题标题】:Faraday::ConnectionFailed (Failed to open TCP connection to api.arknode.net:4001Faraday::ConnectionFailed (无法打开到 api.arknode.net:4001 的 TCP 连接
【发布时间】:2018-02-25 12:38:27
【问题描述】:

我正在使用ark-ruby gem 和那个代码

client = Ark::Client.new(
  :ip => 'api.arknode.net',
  :port => '4001',
  :nethash => '6e84d08bd299ed97c212c886c98a57e36545c8f5d645ca7eeae63a8bd62d8988',
  :version => '1.0.1'
)

但它在 heroku 上给出了一个错误 Faraday::ConnectionFailed (Failed to open TCP connection to api.arknode.net:4001 (Connection refused - connect(2) for "api.arknode.net" port 4001)):

我该如何解决?

【问题讨论】:

    标签: ruby-on-rails ruby heroku faraday


    【解决方案1】:

    api.arknode.net 大约一周没有响应。该 URL 应使用 HTTPS。您现在可以尝试将其更改为 5.39.9.240 端口 4001 并且只是 HTTP。

    注意:网络设置有种子服务器列表。您应该使用种子服务器来获取在其中进行 API 调用的对等点列表。 https://ark.brianfaust.me/#/Peer/peers_getPeers.

    【讨论】:

      猜你喜欢
      • 2017-07-20
      • 1970-01-01
      • 1970-01-01
      • 2015-12-03
      • 1970-01-01
      • 1970-01-01
      • 2023-03-25
      • 2021-05-22
      • 2021-12-01
      相关资源
      最近更新 更多