Skip to content

Instantly share code, notes, and snippets.

@cloke
Created October 15, 2011 03:47
Show Gist options
  • Select an option

  • Save cloke/1289001 to your computer and use it in GitHub Desktop.

Select an option

Save cloke/1289001 to your computer and use it in GitHub Desktop.
Webrick Error
[2011-10-14 20:42:21] ERROR NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split
/Users/cory/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/handler/webrick.rb:68:in `block in service'
/Users/cory/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/utils.rb:356:in `block in each'
/Users/cory/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/utils.rb:355:in `each'
/Users/cory/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/utils.rb:355:in `each'
/Users/cory/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.4/lib/rack/handler/webrick.rb:62:in `service'
/Users/cory/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/cory/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/cory/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
@jchenjc

jchenjc commented Nov 8, 2011

Copy link
Copy Markdown

I got this same error too.
It occurs in rack-1.3.3 as well.

[2011-11-08 13:17:43] ERROR NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split
/home/jian/.rvm/gems/ruby-1.9.2-p290@project/gems/rack-1.3.3/lib/rack/handler/webrick.rb:68:in block in service' /home/jian/.rvm/gems/ruby-1.9.2-p290@project/gems/rack-1.3.3/lib/rack/utils.rb:355:inblock in each'
/home/jian/.rvm/gems/ruby-1.9.2-p290@project/gems/rack-1.3.3/lib/rack/utils.rb:354:in each' /home/jian/.rvm/gems/ruby-1.9.2-p290@project/gems/rack-1.3.3/lib/rack/utils.rb:354:ineach'
/home/jian/.rvm/gems/ruby-1.9.2-p290@project/gems/rack-1.3.3/lib/rack/handler/webrick.rb:62:in service' /home/jian/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:inservice'
/home/jian/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in run' /home/jian/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:inblock in start_thread'

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