Page MenuHomeSoftware Heritage
Paste P325

EncodeError(TypeError("b'xxx' is not JSON serializable")) in debian stable chroot
ActivePublic

Authored by ardumont on Oct 25 2018, 3:08 PM.
celery.worker.strategy: INFO: Received task: swh.indexer.tests.test_origin_metadata.test_revision_metadata_task[785b1155-89f2-4aec-ac50-c2d3eb34b4d3]
celery.app.trace: ERROR: Task swh.indexer.tests.test_origin_metadata.test_revision_metadata_task[785b1155-89f2-4aec-ac50-c2d3eb34b4d3] raised unexpected: EncodeError(TypeError("b'8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f' is not JSON serializable",),)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kombu/serialization.py", line 50, in _reraise_errors
yield
File "/usr/lib/python3/dist-packages/kombu/serialization.py", line 221, in dumps
payload = encoder(data)
File "/usr/lib/python3/dist-packages/kombu/utils/json.py", line 69, in dumps
**dict(default_kwargs, **kwargs))
File "/usr/lib/python3.5/json/__init__.py", line 237, in dumps
**kw).encode(obj)
File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python3/dist-packages/kombu/utils/json.py", line 59, in default
return super(JSONEncoder, self).default(o)
File "/usr/lib/python3.5/json/encoder.py", line 179, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f' is not JSON serializable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/celery/app/trace.py", line 442, in trace_task
uuid, retval, task_request, publish_result,
File "/usr/lib/python3/dist-packages/celery/backends/base.py", line 146, in mark_as_done
self.store_result(task_id, result, state, request=request)
File "/usr/lib/python3/dist-packages/celery/backends/base.py", line 322, in store_result
request=request, **kwargs)
File "/usr/lib/python3/dist-packages/celery/backends/base.py", line 664, in _store_result
self.set(self.get_key_for_task(task_id), self.encode(meta))
File "/usr/lib/python3/dist-packages/celery/backends/base.py", line 272, in encode
_, _, payload = self._encode(data)
File "/usr/lib/python3/dist-packages/celery/backends/base.py", line 276, in _encode
return dumps(data, serializer=self.serializer)
File "/usr/lib/python3/dist-packages/kombu/serialization.py", line 221, in dumps
payload = encoder(data)
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3/dist-packages/kombu/serialization.py", line 54, in _reraise_errors
reraise(wrapper, wrapper(exc), sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/vine/five.py", line 178, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/kombu/serialization.py", line 50, in _reraise_errors
yield
File "/usr/lib/python3/dist-packages/kombu/serialization.py", line 221, in dumps
payload = encoder(data)
File "/usr/lib/python3/dist-packages/kombu/utils/json.py", line 69, in dumps
**dict(default_kwargs, **kwargs))
File "/usr/lib/python3.5/json/__init__.py", line 237, in dumps
**kw).encode(obj)
File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python3/dist-packages/kombu/utils/json.py", line 59, in default
return super(JSONEncoder, self).default(o)
File "/usr/lib/python3.5/json/encoder.py", line 179, in default
raise TypeError(repr(o) + " is not JSON serializable")
kombu.exceptions.EncodeError: b'8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f' is not JSON serializable
celery.worker.strategy: INFO: Received task: swh.indexer.tests.test_origin_metadata.test_origin_intrinsic_metadata_task[c0010766-bae2-4083-bbb5-60c8706ba5c2]
celery.app.trace: ERROR: Task swh.indexer.tests.test_origin_metadata.test_origin_intrinsic_metadata_task[c0010766-bae2-4083-bbb5-60c8706ba5c2] raised unexpected: EncodeError(TypeError("b'8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f' is not JSON serializable",),)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kombu/serialization.py", line 50, in _reraise_errors
yield
File "/usr/lib/python3/dist-packages/kombu/serialization.py", line 221, in dumps
payload = encoder(data)
File "/usr/lib/python3/dist-packages/kombu/utils/json.py", line 69, in dumps
**dict(default_kwargs, **kwargs))
File "/usr/lib/python3.5/json/__init__.py", line 237, in dumps
**kw).encode(obj)
File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
return _iterencode(o, 0)
File "/usr/lib/python3/dist-packages/kombu/utils/json.py", line 59, in default
return super(JSONEncoder, self).default(o)
File "/usr/lib/python3.5/json/encoder.py", line 179, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f' is not JSON serializable

Event Timeline

ardumont changed the title of this paste from EncodeError(TypeError("b'8dbb6aeb036e7fd80664eb8bfd1507881af1ba9f' is not JSON serializable" in debian chroot to EncodeError(TypeError("b'xxx' is not JSON serializable")) in debian stable chroot.Oct 25 2018, 3:36 PM