NoMethodError at /
undefined method `set_encoding' for #Rack::Lint::InputWrapper:0x00000000ee96e8
file: wecheat.rb
location: block in <class:WecheatApp>
line: 16
BACKTRACE
(expand)
JUMP TO: GET POST COOKIES ENV
/home/plone/workspace/wecheat/wecheat.rb in block in <class:WecheatApp>
request.body.set_encoding('utf-8')
/usr/share/ruby/webrick/httpserver.rb in service
si.service(req, res)
/usr/share/ruby/webrick/httpserver.rb in run
server.service(req, res)
/usr/share/ruby/webrick/server.rb in block in start_thread
block ? block.call(sock) : run(sock)
GET
No GET data.
POST
No POST data.
COOKIES
Variable Value
LiveWSBYT78159951
"1380951467244512564056"
fistvisitetime
"1380951468169"
lastvisitetime
"1381318942757"
visitecounts
"3"
visitepages
"36"
__utma
"111872281.348649655.1381362676.1381362676.1381376831.2"
gauges_unique
"1"
AJSTAT_ok_times
"4"
Rack ENV
Variable Value
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,/_;q=0.8
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT_LANGUAGE
zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_CONNECTION
keep-alive
HTTP_COOKIE
LiveWSBYT78159951=1380951467244512564056; fistvisitetime=1380951468169; lastvisitetime=1381318942757; visitecounts=3; visitepages=36; __utma=111872281.348649655.1381362676.1381362676.1381376831.2; _gauges_unique=1; AJSTAT_ok_times=4
HTTP_HOST
localhost:9292
HTTP_USER_AGENT
Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0
HTTP_VERSION
HTTP/1.1
PATH_INFO
/
QUERY_STRING
REMOTE_ADDR
127.0.0.1
REMOTE_HOST
localhost.localdomain
REQUEST_METHOD
GET
REQUEST_PATH
/
REQUEST_URI
http://localhost:9292/
SCRIPT_NAME
SERVER_NAME
localhost
SERVER_PORT
9292
SERVER_PROTOCOL
HTTP/1.1
SERVER_SOFTWARE
WEBrick/1.3.1 (Ruby/1.9.3/2013-06-27)
rack.errors
Object:0x00000001593f98
rack.input
<Rack::Lint::InputWrapper:0x00000000ee96e8 @input=#StringIO:0x00000000f078a0>
rack.logger
<Rack::NullLogger:0x00000000e053a8 @app=#<Rack::Protection::FrameOptions:0x00000000e05bc8 @app=#<Rack::Protection::HttpOrigin:0x00000000e06190 @app=#<Rack::Protection::IPSpoofing:0x00000000e062f8 @app=#<Rack::Protection::JsonCsrf:0x00000000e066b8 @app=#<Rack::Protection::PathTraversal:0x00000000e06e60 @app=#<Rack::Protection::XSSHeader:0x00000000de6818 @app=#<WecheatApp:0x00000000ee8d38 @default_layout=:layout, @preferred_extension=nil, @app=nil, @template_cache=#<Tilt::Cache:0x00000000ee8ce8 @cache={}>>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :xss_mode=>:block, :nosniff=>true, :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml"], :frame_options=>:sameorigin, :except=>[:session_hijacking, :remote_token]}>>
rack.multiprocess
false
rack.multithread
true
rack.request.cookie_hash
{"LiveWSBYT78159951"=>"1380951467244512564056", "fistvisitetime"=>"1380951468169", "lastvisitetime"=>"1381318942757", "visitecounts"=>"3", "visitepages"=>"36", "__utma"=>"111872281.348649655.1381362676.1381362676.1381376831.2", "_gauges_unique"=>"1", "AJSTAT_ok_times"=>"4"}
rack.request.cookie_string
LiveWSBYT78159951=1380951467244512564056; fistvisitetime=1380951468169; lastvisitetime=1381318942757; visitecounts=3; visitepages=36; __utma=111872281.348649655.1381362676.1381362676.1381376831.2; _gauges_unique=1; AJSTAT_ok_times=4
rack.request.query_hash
{}
rack.request.query_string
rack.run_once
false
rack.url_scheme
http
rack.version
[1, 2]
sinatra.accept
[text/html, application/xhtml+xml, application/xml, /]
sinatra.commonlogger
true
sinatra.error
<NoMethodError: undefined method `set_encoding' for #Rack::Lint::InputWrapper:0x00000000ee96e8>
You're seeing this error because you have enabled the show_exceptions setting.