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

Already on GitHub? Sign in to your account

undefined local variable or method `default_port' #120

Closed
zombor opened this Issue Oct 10, 2012 · 1 comment

Comments

Projects
None yet
2 participants

zombor commented Oct 10, 2012

Just upgraded, using with FbGraph, and I get this error. Here's a stack trace:

     undefined local variable or method `default_port' for #<HTTPClient::Util::AddressableURI:0x00000003b65e60> (NameError)      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.3.0/lib/httpclient/util.rb:44:in `port'
      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.3.0/lib/httpclient/util.rb:35:in `authority'      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/addressable-2.2.8/lib/addressable/uri.rb:2138:in `to_s'
      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/httpclient_adapter.rb:138:in `build_request_signature'      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/httpclient_adapter.rb:41:in `do_get_with_webmock'
      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/webmock-1.8.8/lib/webmock/http_lib_adapters/httpclient_adapter.rb:33:in `do_get_block_with_webmock'      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.3.0/lib/httpclient.rb:884:in `block in do_request'
      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.3.0/lib/httpclient.rb:978:in `protect_keep_alive_disconnected'      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.3.0/lib/httpclient.rb:883:in `do_request'
      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.3.0/lib/httpclient.rb:771:in `request'
      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.3.0/lib/httpclient.rb:674:in `get'
      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/fb_graph-2.4.20/lib/fb_graph/node.rb:50:in `block in get'
      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/fb_graph-2.4.20/lib/fb_graph/node.rb:124:in `handle_response'
      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/fb_graph-2.4.20/lib/fb_graph/node.rb:49:in `get'
      /home/vagrant/.rvm/gems/ruby-1.9.3-p194/gems/fb_graph-2.4.20/lib/fb_graph/node.rb:19:in `fetch'

zombor commented Oct 10, 2012

Manually downgrading to 2.2.7 fixes the issue.

@nahi nahi closed this in aa263e2 Oct 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment