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

JSONDecodeError when incoming taskwarrior-stored task contains invalid characters #317

Open
coddingtonbear opened this issue Nov 4, 2019 · 1 comment
Assignees
Labels

Comments

@coddingtonbear
Copy link
Owner

https://sentry.io/organizations/intheam/issues/1311552884/?project=210057&referrer=alert_email

JSONDecodeError: Invalid control character at: line 2 column 42 (char 43)
  File "django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "rest_framework/viewsets.py", line 114, in view
    return self.dispatch(request, *args, **kwargs)
  File "inthe_am/taskmanager/viewsets/task.py", line 90, in dispatch
    return super(TaskViewSet, self).dispatch(request, *args, **kwargs)
  File "rest_framework/views.py", line 505, in dispatch
    response = self.handle_exception(exc)
  File "rest_framework/views.py", line 465, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 476, in raise_uncaught_exception
    raise exc
  File "rest_framework/views.py", line 502, in dispatch
    response = handler(request, *args, **kwargs)
  File "inthe_am/taskmanager/decorators.py", line 30, in wrapper
    result = f(self, *args, **kwargs)
  File "inthe_am/taskmanager/viewsets/task.py", line 140, in retrieve
    task = store.client.get_task(uuid=pk)[1]
  File "taskw/warrior.py", line 618, in get_task
    task_id, task = self._load_task(**kw)
  File "taskw/warrior.py", line 650, in _load_task
    task = self._get_task_objects('export', *search)
  File "inthe_am/taskmanager/taskwarrior_client.py", line 233, in _get_task_objects
    results = super(TaskwarriorClient, self)._get_task_objects(obj, *args)
  File "taskw/warrior.py", line 505, in _get_task_objects
    json = self._get_json(*args)
  File "inthe_am/taskmanager/taskwarrior_client.py", line 69, in _get_json
    return json.loads(self._execute(*args)[0])
  File "json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
@coddingtonbear coddingtonbear self-assigned this Nov 4, 2019
@NGenetzky
Copy link
Contributor

Might be related to #287 .

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