简体   繁体   中英

Faraday::ConnectionFailed (Failed to open TCP connection to api.arknode.net:4001

I am using ark-ruby gem and that code

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

But it gives an error on heroku that Faraday::ConnectionFailed (Failed to open TCP connection to api.arknode.net:4001 (Connection refused - connect(2) for "api.arknode.net" port 4001)):

How can I fix it?

api.arknode.net has been non-responsive for about a week. HTTPS should be used for that URL. You can try changing that to 5.39.9.240 port 4001 for now and just HTTP.

Note: The network is set up with a list of seed servers. You should use a seed server to get a list of peers in which to make API calls. https://ark.brianfaust.me/#/Peer/peers_getPeers .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM