为啥我会收到 exception_with_response 503 Service Unavailable with Ruby?

Posted

技术标签:

【中文标题】为啥我会收到 exception_with_response 503 Service Unavailable with Ruby?【英文标题】:Why do I get the exception_with_response 503 Service Unavailable with Ruby?为什么我会收到 exception_with_response 503 Service Unavailable with Ruby? 【发布时间】:2018-06-30 23:05:14 【问题描述】:

我正在使用一个曾经完美运行的机器人。从昨天开始,我无法通过这个机器人连接到网站。手动我可以没有任何问题。为了解决这个问题,我尝试使用 *** 更改我的 IP,以防网站阻止我的 IP。也许它来自我的防火墙?

配置: 视窗 10 64 位 Ruby23-x64(我以前有Ruby24但降级以尝试解决问题)

在下面的日志中,它似乎在 RubyGems 2.3.0 上,但是当我执行“gem update --system”时,我得到了另一个结果,所以不确定它是哪个版本: 捆绑器 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>'

【问题讨论】:

【参考方案1】:

我通过将我尝试连接“https://yobit.net/”的网址替换为“https://www.yobit.net/”找到了解决方案

【讨论】:

以上是关于为啥我会收到 exception_with_response 503 Service Unavailable with Ruby?的主要内容,如果未能解决你的问题,请参考以下文章

为啥我会收到此错误

为啥我会收到这个 TypeError?

为啥我会收到序列化错误?

为啥我会收到错误消息?

知道为啥我会收到此错误吗?

为啥我会收到这种错误验证错误?