我正在使用过去完美工作的机器人。从昨天起,我无法将此机器人连接到网站。手动我可以没有任何问题。为了解决这个问题,我尝试使用VPN来改变我的IP,以防网站阻止我的IP。也许它来自我的防火墙?
配置: Windows 10 64位 Ruby23-x64(我使用Ruby24但降级试图解决问题)
在下面的日志中,似乎是在RubyGems 2.3.0上,但是当我执行“gem update --system”时,我有另一个结果,所以不确定它是哪个版本: 安装了Bundler 1.16.0 安装RubyGems 2.7.4
记录:
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rest-client-2.0.2-x64-mingw32/lib/restclient/abstract_response.rb:223:in `exception_with_response': 503 Service Unavailable (RestClient::ServiceUnavailable)
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rest-client-2.0.2-x64-mingw32/lib/restclient/abstract_response.rb:103:in `return!'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rest-client-2.0.2-x64-mingw32/lib/restclient/request.rb:809:in `process_result'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rest-client-2.0.2-x64-mingw32/lib/restclient/request.rb:725:in `block in transmit'
from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:853:in `start'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rest-client-2.0.2-x64-mingw32/lib/restclient/request.rb:715:in `transmit'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rest-client-2.0.2-x64-mingw32/lib/restclient/request.rb:145:in `execute'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rest-client-2.0.2-x64-mingw32/lib/restclient/request.rb:52:in `execute'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rest-client-2.0.2-x64-mingw32/lib/restclient.rb:67:in `get'
from yobit_bot.rb:57:in `call_api'
from yobit_bot.rb:85:in `get_market_summary'
from yobit_bot.rb:171:in `buy_sell_bot'
from yobit_bot.rb:228:in `<main>'
答案 0 :(得分:0)
我通过替换我尝试连接的网址找到了解决方案&#34; https://yobit.net/&#34;通过&#34; https://www.yobit.net/&#34;