Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON::ParserError at /projects/overview #13

Closed
djp opened this issue Jan 19, 2012 · 1 comment
Closed

JSON::ParserError at /projects/overview #13

djp opened this issue Jan 19, 2012 · 1 comment
Labels

Comments

@djp
Copy link

djp commented Jan 19, 2012

On clicking the Projects button (right next to the Tasks button) I get a big page of back-trace page with the following;

387: unexpected token at 'Mismatched parentheses in expression]'

file: common.rb
location: parse
line: 148

BACKTRACE

(expand)

JUMP TO: GET POST COOKIES ENV

/home/djp/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/json/common.rb in parse
    Parser.new(source, opts).parse
/home/djp/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/json/common.rb in parse
    Parser.new(source, opts).parse
/home/djp/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb in service
    si.service(req, res)
/home/djp/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb in run
    server.service(req, res)
/home/djp/.rvm/rubies/ruby-1.9.3-p0/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

No cookie data.
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_CHARSET
ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT_LANGUAGE
en-us,en;q=0.5
HTTP_CONNECTION
keep-alive
HTTP_HOST
localhost:5678
HTTP_REFERER
http://localhost:5678/tasks/pending
HTTP_USER_AGENT
Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
HTTP_VERSION
HTTP/1.1
PATH_INFO
/projects/overview
QUERY_STRING
REMOTE_ADDR
127.0.0.1
REMOTE_HOST
localhost
REQUEST_METHOD
GET
REQUEST_PATH
/projects/overview
REQUEST_URI
http://localhost:5678/projects/overview
SCRIPT_NAME
SERVER_NAME
localhost
SERVER_PORT
5678
SERVER_PROTOCOL
HTTP/1.1
SERVER_SOFTWARE
WEBrick/1.3.1 (Ruby/1.9.3/2011-10-30)
rack.errors

Object:0x9661d78

rack.input

StringIO:0x9aa14c4

rack.logger

<Rack::NullLogger:0x946dff8 @app=#<Rack::Protection::FrameOptions:0x946e070 @app=#<Rack::Protection::IPSpoofing:0x946e0ac @app=#<Rack::Protection::JsonCsrf:0x946e0fc @app=#<Rack::Protection::PathTraversal:0x946e160 @app=#<Rack::Protection::XSSHeader:0x946e1b0 @app=#<TaskwarriorWeb::App:0x943c318 @default_layout=:layout, @app=nil, @template_cache=#<Tilt::Cache:0x943c304 @cache={}>>, @options={:reaction=>:default_reaction, :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=>:default_reaction, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:default_reaction, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:default_reaction, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :except=>[:session_hijacking, :remote_token]}>, @options={:reaction=>:default_reaction, :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
true
rack.request.cookie_hash
{}
rack.request.query_hash
{}
rack.request.query_string
rack.run_once
false
rack.url_scheme
http
rack.version
[1, 1]
sinatra.error

<JSON::ParserError: 387: unexpected token at 'Mismatched parentheses in expression]'>

You're seeing this error because you have enabled the show_exceptions setting.

@theunraveler
Copy link
Owner

After discussing with djp, I believe this is a result of using task 2, which task-web does not support yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants