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

Net::HTTP adapter broken? #34

Closed
RISCfuture opened this issue May 10, 2011 · 4 comments
Closed

Net::HTTP adapter broken? #34

RISCfuture opened this issue May 10, 2011 · 4 comments
Labels

Comments

@RISCfuture
Copy link
Contributor

ruby-1.9.2-p180 :005 > HTTPI.get 'http://www.example.com'
D, [2011-05-09T21:41:48.430221 #34218] DEBUG -- : HTTPI executes HTTP GET using the net_http adapter
NoMethodError: undefined method `to_hash' for nil:NilClass
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@url_validation/gems/httpi-0.9.3/lib/httpi/adapter/net_http.rb:110:in `respond_with'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@url_validation/gems/httpi-0.9.3/lib/httpi/adapter/net_http.rb:76:in `do_request'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@url_validation/gems/httpi-0.9.3/lib/httpi/adapter/net_http.rb:22:in `get'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@url_validation/gems/httpi-0.9.3/lib/httpi.rb:86:in `block in get'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@url_validation/gems/httpi-0.9.3/lib/httpi.rb:189:in `with_adapter'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@url_validation/gems/httpi-0.9.3/lib/httpi.rb:84:in `get'
    from (irb):5
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.13/lib/bundler/cli.rb:437:in `console'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.13/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.13/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.13/lib/bundler/vendor/thor.rb:246:in `dispatch'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.13/lib/bundler/vendor/thor/base.rb:389:in `start'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.13/bin/bundle:13:in `<top (required)>'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@global/bin/bundle:19:in `load'
    from /Users/tmorgan/.rvm/gems/ruby-1.9.2-p180@global/bin/bundle:19:in `<main>'
@rubiii
Copy link
Contributor

rubiii commented May 12, 2011

this has already been reported and a fix for it is currently being tested. for now, you can require 'net/http' before executing any soap request to work around the problem.

@danabr
Copy link

danabr commented May 14, 2011

I am experiencing the same thing.

For my part using require 'net/http' before making any request does not help.

FYI, I am running on Ruby 1.9.2-p136.

rubiii added a commit that referenced this issue May 15, 2011
this fixes a very annyoing problem with ntlm-http monkey patching the
net/http response.
@rubiii
Copy link
Contributor

rubiii commented May 15, 2011

please update to version 0.9.4 and let me know if it fixes the problem.

@rubiii
Copy link
Contributor

rubiii commented Jul 31, 2011

should be fixed. let me know if it's not.

@rubiii rubiii closed this as completed Jul 31, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants