-
Notifications
You must be signed in to change notification settings - Fork 91
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
undefined method `closed?' for nil:NilClass #44
Comments
Which patch level of 1.8.7? I'm using 1.8.7-p299 and this is what I get: tpitale@localhost@~> irb |
Hey, this is on patch level 249. According to the Changelog, it looks like the problem may have been fixed in net/http on May 22nd, 2010. For reference, in debug mode, it's clear that Garb is raising the correct exception, but Ruby is raising another. I'm not exactly sure what's going on here as I'd have thought the first exception would halt execution. irb(main):002:0> Garb::Session.login("a", "s") Exception `Garb::AuthenticationRequest::AuthError' at /var/lib/gems/1.8/gems/garb-0.8.0/lib/garb/authentication_request.rb:37 - Garb::AuthenticationRequest::AuthError Exception `Garb::AuthenticationRequest::AuthError' at /usr/lib/ruby/1.8/net/http.rb:1061 - Garb::AuthenticationRequest::AuthError Exception `NoMethodError' at /usr/lib/ruby/1.8/net/http.rb:1060 - undefined method `closed?' for nil:NilClass Exception `NoMethodError' at /usr/lib/ruby/1.8/irb/workspace.rb:81 - undefined method `closed?' for nil:NilClass NoMethodError: undefined method `closed?' for nil:NilClass from /usr/lib/ruby/1.8/net/http.rb:1060:in `request' from /var/lib/gems/1.8/gems/garb-0.8.0/lib/garb/authentication_request.rb:36:in `send_request' from /var/lib/gems/1.8/gems/garb-0.8.0/lib/garb/authentication_request.rb:49:in `auth_token' from /var/lib/gems/1.8/gems/garb-0.8.0/lib/garb/session.rb:10:in `login' from (irb):2 Thanks! :) |
If it helps, I just saw this same exception ( |
Upon attempting to login, I receive the following error from Garb. See my irb session:
I am running Ruby 1.8.7 and have tried with ActiveSupport 3.0.0 and 2.3.8. My crack version is 0.1.8
EDIT: It seems this error is only happening when the user/pass is incorrect.
The text was updated successfully, but these errors were encountered: