GithubHelp home page GithubHelp logo

Comments (3)

tpitale avatar tpitale commented on August 18, 2024

Which patch level of 1.8.7? I'm using 1.8.7-p299 and this is what I get:

tpitale@localhost@~> irb
ruby-1.8.7-p299 > require 'rubygems'
=> true
ruby-1.8.7-p299 > require 'garb'
=> true
ruby-1.8.7-p299 > Garb::Session.login('user', 'pass')
Garb::AuthenticationRequest::AuthError: Garb::AuthenticationRequest::AuthError
from /Users/tpitale/.rvm/gems/ruby-1.8.7-p299/gems/garb-0.8.1/lib/garb/authentication_request.rb:37:in send_request' from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:1054:inrequest'
from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:2144:in reading_body' from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:1053:inrequest'
from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:1037:in request' from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:543:instart'
from /Users/tpitale/.rvm/rubies/ruby-1.8.7-p299/lib/ruby/1.8/net/http.rb:1035:in request' from /Users/tpitale/.rvm/gems/ruby-1.8.7-p299/gems/garb-0.8.1/lib/garb/authentication_request.rb:36:insend_request'
from /Users/tpitale/.rvm/gems/ruby-1.8.7-p299/gems/garb-0.8.1/lib/garb/authentication_request.rb:49:in auth_token' from /Users/tpitale/.rvm/gems/ruby-1.8.7-p299/gems/garb-0.8.1/lib/garb/session.rb:10:inlogin'
from (irb):3

from garb.

buntine avatar buntine commented on August 18, 2024

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! :)

from garb.

nbibler avatar nbibler commented on August 18, 2024

If it helps, I just saw this same exception (undefined method closed?) raised from within ruby-1.8.7-p248, x86_64, using ActiveResource 3.0.3 with an empty application. Outside of garb. Just a straight ActiveResource::Base inherited class call.

from garb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.