subscriptions create failed due to Object of type 'bytes' is not JSON serializable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
Fix Released
|
Undecided
|
Xing Zhang |
Bug Description
When creating subscriptions in queues, zaqar server raise an error: TypeError: Object of type 'bytes' is not JSON serializable
the response_body has bytes value like this, the value of source is bytes type:
{'subscriptions': [{'id': '20fce66f-
Most projects are update json module to jsonutils of oslo.serialization, consider to update in zaqar:
https:/
Full trace is:
Failed to send email because a bytes-like object is required, not 'str'.: TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "/usr/lib/
p.
File "/usr/lib64/
self.
File "/usr/lib64/
self.
zaqar.
zaqar.
Object of type 'bytes' is not JSON serializable: TypeError: Object of type 'bytes' is not JSON serializable
Traceback (most recent call last):
File "falcon/api.py", line 269, in falcon.
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
resp.body = utils.to_
File "/usr/lib/
return json.dumps(obj, ensure_ascii=False)
File "/usr/lib64/
**
File "/usr/lib64/
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib64/
return _iterencode(o, 0)
File "/usr/lib64/
o.
zaqar.
Changed in zaqar: | |
assignee: | nobody → Xing Zhang (xingzhang) |
Fix proposed to branch: master /review. opendev. org/c/openstack /zaqar/ +/835380
Review: https:/