NameError: uninitialized constant HTTParty::Response::Net

395 views
Skip to first unread message

Ahto

unread,
Jan 19, 2011, 4:27:10 AM1/19/11
to HTTParty Gem
I'm using httparty in a sinatra project and I'm having this error with
version 0.7.0 right after loading first page after starting up
shotgun.
The 0.6.1 version works just fine for me.

NameError: uninitialized constant HTTParty::Response::Net

/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/rake-0.8.7/lib/
rake.rb:2503:in `const_missing'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/httparty-0.7.0/lib/
httparty/response.rb:59:in `<class:Response>'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/httparty-0.7.0/lib/
httparty/response.rb:2:in `<module:HTTParty>'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/httparty-0.7.0/lib/
httparty/response.rb:1:in `<top (required)>'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/httparty-0.7.0/lib/
httparty.rb:455:in `require'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/httparty-0.7.0/lib/
httparty.rb:455:in `<top (required)>'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/bundler-1.0.7/lib/
bundler/runtime.rb:64:in `require'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/bundler-1.0.7/lib/
bundler/runtime.rb:64:in `block (2 levels) in require'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/bundler-1.0.7/lib/
bundler/runtime.rb:62:in `each'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/bundler-1.0.7/lib/
bundler/runtime.rb:62:in `block in require'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/bundler-1.0.7/lib/
bundler/runtime.rb:51:in `each'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/bundler-1.0.7/lib/
bundler/runtime.rb:51:in `require'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/bundler-1.0.7/lib/
bundler.rb:112:in `require'
/Users/ahto/code/active_projects/sinatra/ultra/environment.rb:17:in
`<top (required)>'
config.ru:8:in `require'
config.ru:8:in `block in inner_app'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/rack-1.2.1/lib/rack/
builder.rb:46:in `instance_eval'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/rack-1.2.1/lib/rack/
builder.rb:46:in `initialize'
config.ru:1:in `new'
config.ru:1:in `inner_app'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/shotgun-0.8/lib/
shotgun/loader.rb:112:in `eval'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/shotgun-0.8/lib/
shotgun/loader.rb:112:in `inner_app'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/shotgun-0.8/lib/
shotgun/loader.rb:102:in `assemble_app'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/shotgun-0.8/lib/
shotgun/loader.rb:86:in `proceed_as_child'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/shotgun-0.8/lib/
shotgun/loader.rb:31:in `call!'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/shotgun-0.8/lib/
shotgun/loader.rb:18:in `call'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/shotgun-0.8/lib/
shotgun/favicon.rb:12:in `call'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/shotgun-0.8/lib/
shotgun/static.rb:14:in `call'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/rack-1.2.1/lib/rack/
builder.rb:77:in `call'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/rack-1.2.1/lib/rack/
content_length.rb:13:in `call'
/Users/ahto/.rvm/gems/ruby-1.9.2-p136@ultra/gems/rack-1.2.1/lib/rack/
handler/webrick.rb:52:in `service'
/Users/ahto/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/
httpserver.rb:111:in `service'
/Users/ahto/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/
httpserver.rb:70:in `run'
/Users/ahto/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/
server.rb:183:in `block in start_thread'

Sandro

unread,
Jan 20, 2011, 12:35:37 PM1/20/11
to HTTParty Gem
Sorry about that, try upgrading to 0.7.3

Ahto

unread,
Jan 21, 2011, 4:02:30 AM1/21/11
to HTTParty Gem
Thanks, it works great.
Reply all
Reply to author
Forward
0 new messages