Net::HTTP Gives time out but browser visit returns data

Posted by steve on Stack Overflow See other posts from Stack Overflow or by steve
Published on 2010-05-12T15:07:07Z Indexed on 2010/05/12 15:14 UTC
Read the original article Hit count: 156

Filed under:
|

I tried the following

Net::HTTP.get_print URI.parse(URI.encode('https://graph.facebook.com/me/likes?access_token=mytoken', '|'))

(My Token is my actual token in code)

I get a EOFError: end of file reached error

If I visit the page with my browswer it loads up a JSON page. Any idea what could be causing the error? It was working a few days ago. Can't see any changes to facebook api.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about facebook