DongTai-engine icon indicating copy to clipboard operation
DongTai-engine copied to clipboard

TypeError: the JSON object must be str, bytes or bytearray, not NoneType

Open exexute opened this issue 3 years ago • 0 comments

DongTai-Engine unsolved exception:

Task core.tasks.vul_recheck[63c005c7-d49a-4636-9168-6fbe59c1aa89] raised unexpected: TypeError('the JSON object must be str, bytes or bytearray, not NoneType')
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/celery/app/trace.py", line 650, in __protected_call__
    return self.run(*args, **kwargs)
  File "/opt/dongtai/engine/core/tasks.py", line 652, in vul_recheck
    params = json.loads(param_name_value)
  File "/usr/local/lib/python3.7/json/__init__.py", line 341, in loads
    raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
Received task: core.tasks.search_sink_from_method_pool[d7910aca-24af-403f-84ca-1c3a3f752c9a]  

exexute avatar Feb 15 '22 10:02 exexute