-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
area:codecArea: codecs and serializationArea: codecs and serializationbugSomething isn't workingSomething isn't workingpriority:p2Priority P2 (medium)Priority P2 (medium)
Milestone
Description
Summary
Returning Python bytes/bytearray currently leads to JSON serialization failures; these should be encoded or rejected explicitly.
Failure mode
json.dumpsraisesTypeError: Object of type bytes is not JSON serializable.- The error can surface as a protocol error rather than a clear codec error.
Repro (adversarial)
- Add a fixture that returns
b"\x00\x01"andbytearray([...]). - Call through
NodeBridgeand assert explicit error or base64 envelope.
Acceptance criteria
- Bytes/bytearray are either encoded in a dedicated envelope (preferred) or rejected with a clear error.
- Adversarial tests cover bytes/bytearray return paths.
Metadata
Metadata
Assignees
Labels
area:codecArea: codecs and serializationArea: codecs and serializationbugSomething isn't workingSomething isn't workingpriority:p2Priority P2 (medium)Priority P2 (medium)