Skip to content

Instantly share code, notes, and snippets.

@anathematic
Created September 20, 2012 01:26
Show Gist options
  • Save anathematic/82e0cc173b7792bdf21b to your computer and use it in GitHub Desktop.
Save anathematic/82e0cc173b7792bdf21b to your computer and use it in GitHub Desktop.
NoMethodError at /messages/1.html
undefined method `gsub!' for nil:NilClass
file: web.rb location: block in <class:Web> line: 70
BACKTRACE
(expand)
JUMP TO: GET POST COOKIES ENV
GET
No GET data.
POST
No POST data.
COOKIES
Variable Value
__atuvc
"72|33,0|34,11|35"
Rack ENV
Variable Value
GATEWAY_INTERFACE
CGI/1.2
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_CHARSET
ISO-8859-1,utf-8;q=0.7,*;q=0.3
HTTP_ACCEPT_ENCODING
gzip,deflate,sdch
HTTP_ACCEPT_LANGUAGE
en-US,en;q=0.8
HTTP_CONNECTION
keep-alive
HTTP_COOKIE
__atuvc=72%7C33%2C0%7C34%2C11%7C35
HTTP_HOST
localhost:1080
HTTP_REFERER
http://localhost:1080/
HTTP_USER_AGENT
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
HTTP_VERSION
HTTP/1.1
PATH_INFO
/messages/1.html
QUERY_STRING
REMOTE_ADDR
127.0.0.1
REQUEST_METHOD
GET
REQUEST_PATH
/messages/1.html
REQUEST_URI
/messages/1.html
SCRIPT_NAME
SERVER_NAME
localhost
SERVER_PORT
1080
SERVER_PROTOCOL
HTTP/1.1
SERVER_SOFTWARE
thin 1.4.1 codename Chromeo
async.callback
#<Method: Thin::Connection#post_process>
async.close
#<EventMachine::DefaultDeferrable:0x00000102b54fc0>
rack.errors
#<Object:0x0000010253aae0>
rack.input
#<StringIO:0x00000102b556f0>
rack.logger
#<Rack::NullLogger:0x00000102c04fb0 @app=#<Rack::Protection::FrameOptions:0x00000102c05078 @app=#<Rack::Protection::IPSpoofing:0x00000102c050f0 @app=#<Rack::Protection::JsonCsrf:0x00000102c05168 @app=#<Rack::Protection::PathTraversal:0x00000102c051e0 @app=#<Rack::Protection::XSSHeader:0x00000102c05280 @app=#<MailCatcher::Web:0x00000101654e40 @default_layout=:layout, @app=nil, @template_cache=#<Tilt::Cache:0x00000101654e18 @cache={}>>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :xss_mode=>:block, :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, :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, :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, :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, :xss_mode=>:block, :frame_options=>:sameorigin, :except=>[:session_hijacking, :remote_token]}>>
rack.multiprocess
false
rack.multithread
false
rack.request.cookie_hash
{"__atuvc"=>"72|33,0|34,11|35"}
rack.request.cookie_string
__atuvc=72%7C33%2C0%7C34%2C11%7C35
rack.request.query_hash
{}
rack.request.query_string
rack.run_once
false
rack.url_scheme
http
rack.version
[1, 0]
sinatra.error
#<NoMethodError: undefined method `gsub!' for nil:NilClass>
You're seeing this error because you have enabled the show_exceptions setting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment