EOFError: end of file reached issue with Net::HTTP

后端 未结 7 954
[愿得一人]
[愿得一人] 2020-11-30 21:54

I am using ruby-1.8.7-p302/Rails 2.3.11. I am trying to use FQL (Facebook API) to get stats for a link. Here\'s my code:

def stats(fb_post_url)
  url = BASE_         


        
7条回答
  •  广开言路
    2020-11-30 22:00

    I had the same problem, ruby-1.8.7-p357, and tried loads of things in vain...

    I finally realised that it happens only on multiple calls using the same XMLRPC::Client instance!

    So now I'm re-instantiating my client at each call and it just works:|

提交回复
热议问题