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 /tasks/pending 859: unexpected token at '' file: common.rb location: parse line: 216 #155

Open
BaitVolodymyr opened this issue Jul 9, 2022 · 0 comments

Comments

@BaitVolodymyr
Copy link

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 class:App
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.

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

No branches or pull requests

1 participant