Created
September 1, 2013 16:00
-
-
Save linuxcaffe/6405364 to your computer and use it in GitHub Desktop.
TWeb crash after auth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application error | |
NoMethodError at /tasks/pending | |
undefined method `encode' for nil:NilClass | |
file: csv.rb | |
location: block in <class:CSV> | |
line: 957 | |
BACKTRACE | |
(expand) | |
JUMP TO: GET POST COOKIES ENV | |
/usr/lib/ruby/1.9.1/csv.rb in block in <class:CSV> | |
h.encode(ConverterEncoding).downcase.gsub(/\s+/, "_"). | |
/usr/lib/ruby/1.9.1/csv.rb in [] | |
converter[field] | |
/usr/lib/ruby/1.9.1/csv.rb in block (2 levels) in convert_fields | |
converter[field] | |
/usr/lib/ruby/1.9.1/csv.rb in each | |
converters.each do |converter| | |
/usr/lib/ruby/1.9.1/csv.rb in block in convert_fields | |
# shortcut. | |
# | |
def convert_fields(fields, headers = false) | |
# see if we are converting headers or fields | |
converters = headers ? @header_converters : @converters | |
fields.map.with_index do |field, index| | |
converters.each do |converter| | |
field = if converter.arity == 1 # straight field converter | |
converter[field] | |
else # FieldInfo converter | |
header = @use_headers && !headers ? @headers[index] : nil | |
converter[field, FieldInfo.new(index, lineno, header)] | |
end | |
break unless field.is_a? String # short-curcuit pipeline for speed | |
/usr/lib/ruby/1.9.1/csv.rb in map | |
fields.map.with_index do |field, index| | |
/usr/lib/ruby/1.9.1/csv.rb in with_index | |
fields.map.with_index do |field, index| | |
/usr/lib/ruby/1.9.1/csv.rb in convert_fields | |
fields.map.with_index do |field, index| | |
/usr/lib/ruby/1.9.1/csv.rb in parse_headers | |
@headers = convert_fields(@headers, true) | |
/usr/lib/ruby/1.9.1/csv.rb in block in shift | |
csv = parse_headers(csv) if @use_headers | |
/usr/lib/ruby/1.9.1/csv.rb in loop | |
loop do | |
/usr/lib/ruby/1.9.1/csv.rb in shift | |
loop do | |
/usr/lib/ruby/1.9.1/csv.rb in each | |
while row = shift | |
/usr/lib/ruby/1.9.1/csv.rb in parse | |
csv.each(&block) | |
/usr/lib/ruby/1.9.1/webrick/httpserver.rb in service | |
si.service(req, res) | |
/usr/lib/ruby/1.9.1/webrick/httpserver.rb in run | |
server.service(req, res) | |
/usr/lib/ruby/1.9.1/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 | |
rack.session | |
"BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFYzQyZGUxZGJiM2IwMTU2MjA5Y2Fl\nYWJmZjI1NWZlYWY0N2U5ZjhiNDY1MGRiNDkxNTQ5NGRlNDhiNzVkNmFhOEki\nDXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItY2E2OTcz\nMGQ5MTY0YmY4NTE5N2M4NDAzZDhjMGIyZmQzMzJjYzZkY0kiGUhUVFBfQUND\nRVBUX0VOQ09ESU5HBjsARiItYTBiZmM4NzZkNjhmZTdhZWE3MDBkYTVlYTg5\nMjVhYmFjNmYyZjc5NEkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGQw\nNjVlZDI2M2M2N2Q3OTlmOTQzYWI2YzM5YjU1YzVlMDA4Y2JiNQ==\n--635d00b36a231a99fcc87c3a027bf933d60df526" | |
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 | |
en-US,en;q=0.5 | |
HTTP_AUTHORIZATION | |
Basic ZGpwOndhcnIxMHI= | |
HTTP_CACHE_CONTROL | |
max-age=0 | |
HTTP_CONNECTION | |
keep-alive | |
HTTP_COOKIE | |
rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFYzQyZGUxZGJiM2IwMTU2MjA5Y2Fl%0AYWJmZjI1NWZlYWY0N2U5ZjhiNDY1MGRiNDkxNTQ5NGRlNDhiNzVkNmFhOEki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItY2E2OTcz%0AMGQ5MTY0YmY4NTE5N2M4NDAzZDhjMGIyZmQzMzJjYzZkY0kiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItYTBiZmM4NzZkNjhmZTdhZWE3MDBkYTVlYTg5%0AMjVhYmFjNmYyZjc5NEkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGQw%0ANjVlZDI2M2M2N2Q3OTlmOTQzYWI2YzM5YjU1YzVlMDA4Y2JiNQ%3D%3D%0A--635d00b36a231a99fcc87c3a027bf933d60df526 | |
HTTP_HOST | |
50.116.58.146:5679 | |
HTTP_USER_AGENT | |
Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 Iceweasel/20.0 | |
HTTP_VERSION | |
HTTP/1.1 | |
PATH_INFO | |
/tasks/pending | |
QUERY_STRING | |
REMOTE_ADDR | |
69.165.143.117 | |
REMOTE_HOST | |
69-165-143-117.dsl.teksavvy.com | |
REQUEST_METHOD | |
GET | |
REQUEST_PATH | |
/tasks/pending | |
REQUEST_URI | |
http://50.116.58.146:5679/tasks/pending | |
SCRIPT_NAME | |
SERVER_NAME | |
50.116.58.146 | |
SERVER_PORT | |
5679 | |
SERVER_PROTOCOL | |
HTTP/1.1 | |
SERVER_SOFTWARE | |
WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20) | |
rack.errors | |
#<Object:0x898c6d4> | |
rack.input | |
#<StringIO:0x8d1a6c0> | |
rack.logger | |
#<Rack::NullLogger:0x8939c54 @app=#<Rack::Session::Cookie:0x8939ccc @secrets=["ae0c45f07a0e34ef04dbe85684368a68d412b5528b205196cd20252f626f56ec43a46edb88a9d277bf76b1f7d7410c9c8851e568de1be82ab5678dc229a1a4ee"], @coder=#<Rack::Session::Cookie::Base64::Marshal:0x8939c90>, @app=#<Rack::Protection::FrameOptions:0x8939d30 @app=#<Rack::Protection::HttpOrigin:0x8939d80 @app=#<Rack::Protection::IPSpoofing:0x8939dd0 @app=#<Rack::Protection::JsonCsrf:0x8939e5c @app=#<Rack::Protection::PathTraversal:0x893a078 @app=#<Rack::Protection::RemoteToken:0x893a168 @app=#<Rack::Protection::SessionHijacking:0x893a3d4 @app=#<Rack::Protection::XSSHeader:0x893a80c @app=#<Rack::Flash:0x858e85c @app=#<TaskwarriorWeb::App:0x84109d0 @default_layout=:layout, @app=nil, @template_cache=#<Tilt::Cache:0x8410930 @cache={}>>, @opts={}>, @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=>[]}>, @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"], :tracking_key=>:tracking, :encrypt_tracking=>true, :track=>["HTTP_USER_AGENT", "HTTP_ACCEPT_ENCODING", "HTTP_ACCEPT_LANGUAGE"], :except=>[]}>, @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=>[]}>, @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=>[]}>, @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=>[]}>, @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=>[]}>, @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=>[]}>, @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=>[]}, @frame_options="SAMEORIGIN">, @default_options={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :sidbits=>128, :secure_random=>SecureRandom, :secret=>"ae0c45f07a0e34ef04dbe85684368a68d412b5528b205196cd20252f626f56ec43a46edb88a9d277bf76b1f7d7410c9c8851e568de1be82ab5678dc229a1a4ee", :coder=>#<Rack::Session::Cookie::Base64::Marshal:0x8939c90>}, @key="rack.session", @cookie_only=true, @sidbits=128, @sid_secure=SecureRandom, @sid_length=32>> | |
rack.multiprocess | |
false | |
rack.multithread | |
true | |
rack.request.cookie_hash | |
{"rack.session"=>"BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFYzQyZGUxZGJiM2IwMTU2MjA5Y2Fl\nYWJmZjI1NWZlYWY0N2U5ZjhiNDY1MGRiNDkxNTQ5NGRlNDhiNzVkNmFhOEki\nDXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItY2E2OTcz\nMGQ5MTY0YmY4NTE5N2M4NDAzZDhjMGIyZmQzMzJjYzZkY0kiGUhUVFBfQUND\nRVBUX0VOQ09ESU5HBjsARiItYTBiZmM4NzZkNjhmZTdhZWE3MDBkYTVlYTg5\nMjVhYmFjNmYyZjc5NEkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGQw\nNjVlZDI2M2M2N2Q3OTlmOTQzYWI2YzM5YjU1YzVlMDA4Y2JiNQ==\n--635d00b36a231a99fcc87c3a027bf933d60df526"} | |
rack.request.cookie_string | |
rack.session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRiJFYzQyZGUxZGJiM2IwMTU2MjA5Y2Fl%0AYWJmZjI1NWZlYWY0N2U5ZjhiNDY1MGRiNDkxNTQ5NGRlNDhiNzVkNmFhOEki%0ADXRyYWNraW5nBjsARnsISSIUSFRUUF9VU0VSX0FHRU5UBjsARiItY2E2OTcz%0AMGQ5MTY0YmY4NTE5N2M4NDAzZDhjMGIyZmQzMzJjYzZkY0kiGUhUVFBfQUND%0ARVBUX0VOQ09ESU5HBjsARiItYTBiZmM4NzZkNjhmZTdhZWE3MDBkYTVlYTg5%0AMjVhYmFjNmYyZjc5NEkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsARiItZGQw%0ANjVlZDI2M2M2N2Q3OTlmOTQzYWI2YzM5YjU1YzVlMDA4Y2JiNQ%3D%3D%0A--635d00b36a231a99fcc87c3a027bf933d60df526 | |
rack.request.query_hash | |
{} | |
rack.request.query_string | |
rack.run_once | |
false | |
rack.session | |
{"session_id"=>"c42de1dbb3b0156209caeabff255feaf47e9f8b4650db4915494de48b75d6aa8", "tracking"=>{"HTTP_USER_AGENT"=>"ca69730d9164bf85197c8403d8c0b2fd332cc6dc", "HTTP_ACCEPT_ENCODING"=>"a0bfc876d68fe7aea700da5ea8925abac6f2f794", "HTTP_ACCEPT_LANGUAGE"=>"dd065ed263c67d799f943ab6c39b55c5e008cbb5"}} | |
rack.session.options | |
{:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :sidbits=>128, :secure_random=>SecureRandom, :secret=>"ae0c45f07a0e34ef04dbe85684368a68d412b5528b205196cd20252f626f56ec43a46edb88a9d277bf76b1f7d7410c9c8851e568de1be82ab5678dc229a1a4ee", :coder=>#<Rack::Session::Cookie::Base64::Marshal:0x8939c90>} | |
rack.session.unpacked_cookie_data | |
{"session_id"=>"c42de1dbb3b0156209caeabff255feaf47e9f8b4650db4915494de48b75d6aa8", "tracking"=>{"HTTP_USER_AGENT"=>"ca69730d9164bf85197c8403d8c0b2fd332cc6dc", "HTTP_ACCEPT_ENCODING"=>"a0bfc876d68fe7aea700da5ea8925abac6f2f794", "HTTP_ACCEPT_LANGUAGE"=>"dd065ed263c67d799f943ab6c39b55c5e008cbb5"}} | |
rack.url_scheme | |
http | |
rack.version | |
[1, 2] | |
sinatra.accept | |
[text/html, application/xhtml+xml, application/xml, */*] | |
sinatra.error | |
#<NoMethodError: undefined method `encode' for nil:NilClass> | |
sinatra.route | |
GET /tasks/:status/? | |
x-rack.flash | |
#<FlashHash @values={} @cache={}> | |
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