[英]Failed to open TCP connection to localhost:9200 (Connection refused - connect(2) for “localhost” port 9200) (Faraday::ConnectionFailed)
[英]Faraday::ConnectionFailed (Failed to open TCP connection to api.arknode.net:4001
我正在使用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)):
我该如何解决?
api.arknode.net已经无响应了大约一个星期。 该URL应使用HTTPS。 您可以尝试暂时将其更改为5.39.9.240端口4001,仅更改为HTTP。
注意:网络是由种子服务器列表设置的。 您应该使用种子服务器来获取要在其中进行API调用的对等方的列表。 https://ark.brianfaust.me/#/Peer/peers_getPeers 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.