arsduo/koala — Issue #164: parse_signed_cookie results in NoMethodError
Author: viktornordling
Created: 2012-01-31 23:42:10+00:00
State: open

I just migrated from the Facebooker gem to Koala, and I like it a lot!

My site works locally on my Mac, but when I run it in production I get the following error when trying to fetch the facebook info:

NoMethodError (undefined method `closed?' for nil:NilClass):
/usr/local/lib/ruby/1.8/net/http.rb:1060:in `request'
/usr/local/lib/ruby/1.8/net/http.rb:772:in `get'
/usr/local/lib/ruby/gems/1.8/gems/faraday-0.7.6/lib/faraday/adapter/net_http.rb:59:in `call'
/usr/local/lib/ruby/gems/1.8/gems/faraday-0.7.6/lib/faraday/request/url_encoded.rb:14:in `call'
/usr/local/lib/ruby/gems/1.8/gems/faraday-0.7.6/lib/faraday/request/multipart.rb:13:in `call'
/usr/local/lib/ruby/gems/1.8/gems/faraday-0.7.6/lib/faraday/connection.rb:210:in `run_request'
/usr/local/lib/ruby/gems/1.8/gems/faraday-0.7.6/lib/faraday/connection.rb:93:in `get'
/usr/local/lib/ruby/gems/1.8/gems/koala-1.3.0/lib/koala/http_service.rb:74:in `send'
/usr/local/lib/ruby/gems/1.8/gems/koala-1.3.0/lib/koala/http_service.rb:74:in `make_request'
/usr/local/lib/ruby/gems/1.8/gems/koala-1.3.0/lib/koala.rb:52:in `make_request'
/usr/local/lib/ruby/gems/1.8/gems/koala-1.3.0/lib/koala/oauth.rb:306:in `fetch_token_string'
/usr/local/lib/ruby/gems/1.8/gems/koala-1.3.0/lib/koala/oauth.rb:258:in `get_token_from_server'
/usr/local/lib/ruby/gems/1.8/gems/koala-1.3.0/lib/koala/oauth.rb:148:in `get_access_token_info'
/usr/local/lib/ruby/gems/1.8/gems/koala-1.3.0/lib/koala/oauth.rb:293:in `parse_signed_cookie'
/usr/local/lib/ruby/gems/1.8/gems/koala-1.3.0/lib/koala/oauth.rb:36:in `get_user_info_from_cookie'
/app/controllers/app_controller.rb:128:in `check_fb_user'

Very grateful for any help and thanks again for an awesome gem!

Cheers.