Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: can't convert nil into String #37

Open
afterclassroom opened this issue Aug 15, 2011 · 2 comments
Open

TypeError: can't convert nil into String #37

afterclassroom opened this issue Aug 15, 2011 · 2 comments

Comments

@afterclassroom
Copy link

Connect to Yahoo error.

Ruby 1.9.3

@khanhnguyen
Copy link
Contributor

yes. same issue for me.

@jcuffe
Copy link

jcuffe commented Jul 10, 2012

Same issue for me, it seems to be caused by this:

li 15, /lib/contacts/yahoo.rb:
data, resp, cookies, forward = post(LOGIN_URL, postdata)

li 135-142, /lib/contacts/base.rb:

resp, data = http.post(url.path, postdata,
  "User-Agent" => "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0",
  "Accept-Encoding" => "gzip",
  "Cookie" => cookies,
  "Referer" => referer,
  "Content-Type" => 'application/x-www-form-urlencoded'
)
data = uncompress(resp, data)

li 174 in /lib/contacts/base.rb:
gz = Zlib::GzipReader.new(StringIO.new(data))

data is nil at this point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants