Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby HTTP给出超时,但浏览器访问返回数据_Ruby_Facebook - Fatal编程技术网

Ruby HTTP给出超时,但浏览器访问返回数据

Ruby HTTP给出超时,但浏览器访问返回数据,ruby,facebook,Ruby,Facebook,我尝试了以下方法 Net::HTTP.get_print URI.parse(URI.encode('https://graph.facebook.com/me/likes?access_token=mytoken', '|')) (我的令牌是代码中的实际令牌) 我得到一个eoferor:end-of-file-reated错误 如果我使用浏览器访问页面,它会加载一个JSON页面。知道是什么导致了这个错误吗?几天前还在工作。无法看到Facebook API的任何更改 我仍在努力,但这就是我目前

我尝试了以下方法

Net::HTTP.get_print URI.parse(URI.encode('https://graph.facebook.com/me/likes?access_token=mytoken', '|'))
(我的令牌是代码中的实际令牌)

我得到一个
eoferor:end-of-file-reated错误


如果我使用浏览器访问页面,它会加载一个JSON页面。知道是什么导致了这个错误吗?几天前还在工作。无法看到Facebook API的任何更改

我仍在努力,但这就是我目前所拥有的……我在facebook上找到了一份关于这个问题的错误报告:

我可以放心地打电话给你

Net::HTTP.get_print  URI.parse(URI.encode('http://www.whyspam.me', '|')) 
并获得响应很好,但我还无法从任何https网站(如bankofamerica.com)获得响应。如果我发现任何其他信息,我会及时通知你……希望这能有所帮助