从今天上午开始,当我尝试通过我的ROR应用程序连接到FB时,我已经开始收到以下错误。
代码没有任何变化。 Facebook有可能阻止我的IP吗?
请注意,我仅在Production Server上收到此内容,而不是在开发计算机上收到。
Faraday::Error::ConnectionFailed (Network is unreachable - connect(2)):
/home/deploy/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `initialize'
/home/deploy/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `open'
/home/deploy/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `block in connect'
/home/deploy/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/timeout.rb:55:in `timeout'
/home/deploy/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
/home/deploy/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:763:in `connect'
/home/deploy/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:756:in `do_start'
/home/deploy/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:745:in `start'
/home/deploy/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/1.9.1/net/http.rb:1285:in `request'
以下是我在@МалъСкрылевъ的大量帮助后得出的结论
deploy@www:~$ telnet graph.facebook.com 443
Trying 31.13.71.144...
Trying 2a03:2880:f003:b01:face:b00c:0:1...
telnet: Unable to connect to remote host: Network is unreachable
deploy@www:~$ telnet graph.facebook.com 443
Trying 31.13.69.80...
Connected to star.c10r.facebook.com.
Escape character is '^]'.
第一次尝试没有连接...... ..在第二次尝试它连接。所以看来某些IP让它连接而某些IP却没有。
这可能吗?