Skip to content

Instantly share code, notes, and snippets.

@beatlecz
Created May 30, 2013 06:13
Show Gist options
  • Save beatlecz/5675994 to your computer and use it in GitHub Desktop.
Save beatlecz/5675994 to your computer and use it in GitHub Desktop.
Puma caught this error: undefined method `bytesize' for #<Hash:0x007fe678d81768>
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/utils.rb:335:in `bytesize'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:144:in `block in finish'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:144:in `each'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:144:in `inject'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:144:in `finish'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:889:in `call!'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:864:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/logger.rb:15:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:202:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:172:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:1947:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:1610:in `block in call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:1693:in `synchronize'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:1610:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-timeout-0.0.4/lib/rack/timeout.rb:16:in `block in call'
/Users/mirek/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/timeout.rb:65:in `timeout'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-timeout-0.0.4/lib/rack/timeout.rb:16:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/sinatra-1.4.2/lib/sinatra/base.rb:209:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/puma-2.0.1/lib/puma/configuration.rb:66:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/puma-2.0.1/lib/puma/server.rb:364:in `handle_request'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/puma-2.0.1/lib/puma/server.rb:243:in `process_client'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/puma-2.0.1/lib/puma/server.rb:142:in `block in run'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/puma-2.0.1/lib/puma/thread_pool.rb:92:in `call'
/Users/mirek/.rvm/gems/ruby-2.0.0-p0/gems/puma-2.0.1/lib/puma/thread_pool.rb:92:in `block in spawn_thread'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment