Strange errors when using dump/dumps from jsonutils
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Matt Riedemann | ||
oslo.serialization |
Fix Released
|
Undecided
|
Gevorg Davoian |
Bug Description
Methods dump/dumps throw strange exceptions (ValueError: Circular reference detected) when trying to serialize arbitrary (non-serializable) objects.
For example,
jsonutils.
yields the following traceback:
Traceback (most recent call last):
File "/home/
print dumps(object())
File "/home/
return json.dumps(obj, default=default, **kwargs)
File "/usr/lib/
sort_
File "/usr/lib/
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/
return _iterencode(o, 0)
ValueError: Circular reference detected
Changed in oslo.serialization: | |
assignee: | nobody → Gevorg Davoian (gdavoian) |
description: | updated |
description: | updated |
This issue was fixed in the openstack/ oslo.serializat ion 2.19.1 release.