closeio / closeio/tasktiger

TypeError when loading task json data

Open
#112 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.5k
Forks
95
Avg merge
4d 21h
Merged PRs (30d)
1

Description

Traceback (most recent call last):
  File "./test.py", line 4, in purge_tasktiger_error_queues
    count, tasks = Task.tasks_from_queue(tiger, queue, ERROR)
  File "./venv/lib/python3.5/site-packages/tasktiger/task.py", line 393, in tasks_from_queue
    data = json.loads(serialized_data)
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'NoneType'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at task.py:393 in Task.tasks_from_queue and trace the serialized_data path from the test.py call shown in the traceback. Determine why None reaches json.loads, then confirm the intended handling with maintainers; done should include an agreed behavior and a regression test for this failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.