theunraveler / taskwarrior-web

A web interface for the Taskwarrior todo application. Because being a neckbeard is only fun sometimes.
http://theunraveler.github.com/taskwarrior-web
MIT License
527 stars 60 forks source link

JSON::ParserError at /tasks/pending 859: unexpected token at '' file: common.rb location: parse line: 216 #155

Open BaitVolodymyr opened 2 years ago

BaitVolodymyr commented 2 years ago

My OS Linux OpenSuse Leap 15.4

ruby 2.5.9p229 (2021-04-05 revision 67939) [x86_64-linux-gnu] activesupport (3.2.22.5) json-1.8.6

BACKTRACE (condense)

/usr/lib64/ruby/gems/2.5.0/gems/taskwarrior-web-1.1.12/lib/taskwarrior-web/services/parser/json.rb in parse json == '[No matches.]' ? [] : ::JSON.parse(json) /usr/lib64/ruby/gems/2.5.0/gems/taskwarrior-web-1.1.12/lib/taskwarrior-web/services/parser.rb in parse TaskwarriorWeb::Config.version > '1.9.2' ? Json.parse(results) : Csv.parse(results) /usr/lib64/ruby/gems/2.5.0/gems/taskwarrior-web-1.1.12/lib/taskwarrior-web/model/task.rb in query Parser.parse(command.run).each { |result| tasks << Task.new(result) } /usr/lib64/ruby/gems/2.5.0/gems/taskwarrior-web-1.1.12/lib/taskwarrior-web/model/task.rb in method_missing self.query(match.attribute.to_s => arguments.first.to_s) /usr/lib64/ruby/gems/2.5.0/gems/taskwarrior-web-1.1.12/lib/taskwarrior-web/app.rb in block in TaskwarriorWeb::Task.find_by_status(params[:status]) /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in call proc { |a, p| unbound_method.bind(a).call } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in block in compile! proc { |a, p| unbound_method.bind(a).call } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in block (3 levels) in route! route_eval { block[args] } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in route_eval throw :halt, yield /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in block (2 levels) in route! route_eval { block[args] } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in block in process_route block ? block[self, values] : yield(self, values) /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in catch catch(:pass) do /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in process_route catch(:pass) do /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in block in route! returned_pass_block = process_route(pattern, conditions) do |*args| /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in each routes.each do |pattern, conditions, block| /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in route! routes.each do |pattern, conditions, block| /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in block in dispatch! route! /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in block in invoke res = catch(:halt) { yield } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in catch res = catch(:halt) { yield } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in invoke res = catch(:halt) { yield } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in dispatch! invoke do /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in block in call! invoke { dispatch! } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in block in invoke res = catch(:halt) { yield } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in catch res = catch(:halt) { yield } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in invoke res = catch(:halt) { yield } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in call! invoke { dispatch! } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in call dup.call!(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-flash3-1.0.5/lib/rack/flash.rb in call res = @app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-protection-2.2.0/lib/rack/protection/xss_header.rb in call status, headers, body = @app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-protection-2.2.0/lib/rack/protection/base.rb in call result or app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-protection-2.2.0/lib/rack/protection/base.rb in call result or app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-protection-2.2.0/lib/rack/protection/path_traversal.rb in call app.call env /usr/lib64/ruby/gems/2.5.0/gems/rack-protection-2.2.0/lib/rack/protection/json_csrf.rb in call status, headers, body = app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-protection-2.2.0/lib/rack/protection/base.rb in call result or app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-protection-2.2.0/lib/rack/protection/base.rb in call result or app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-protection-2.2.0/lib/rack/protection/frame_options.rb in call status, headers, body = @app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-2.2.3.1/lib/rack/session/abstract/id.rb in context status, headers, body = app.call(req.env) /usr/lib64/ruby/gems/2.5.0/gems/rack-2.2.3.1/lib/rack/session/abstract/id.rb in call context(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-2.2.3.1/lib/rack/null_logger.rb in call @app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-2.2.3.1/lib/rack/head.rb in call status, headers, body = @app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/rack-2.2.3.1/lib/rack/method_override.rb in call @app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/show_exceptions.rb in call @app.call(env) /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in call result, callback = app.call(env), env['async.callback'] /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in call @stack.call(env) /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in block in call synchronize { prototype.call(env) } /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in synchronize yield /usr/lib64/ruby/gems/2.5.0/gems/sinatra-2.2.0/lib/sinatra/base.rb in call synchronize { prototype.call(env) } /usr/lib64/ruby/gems/2.5.0/gems/rack-2.2.3.1/lib/rack/handler/webrick.rb in service status, headers, body = @app.call(env) /usr/lib64/ruby/2.5.0/webrick/httpserver.rb in service si.service(req, res) /usr/lib64/ruby/2.5.0/webrick/httpserver.rb in run server.service(req, res) /usr/lib64/ruby/2.5.0/webrick/server.rb in block in start_thread block ? block.call(sock) : run(sock) GET No GET data.

POST No POST data.