- Error:
SerovalMalformedBinarySourceError - Step: none
- Fields: none.
What it means
The binary input ended too early: in the middle of a node, before the Root node, or before every container, promise and stream was complete. A session also throws it when bytes arrive after the payload ended.
Common causes
- The connection closed before the sender finished.
- The input was not produced by seroval, or was changed on the way.
- The input was produced by a different seroval version.
- Someone sent the input on purpose to attack the receiver.
How to fix it
- Check that the whole payload arrives, and that each payload is decoded on its own.
- Use the same seroval version on both sides.
- Check that the input reaches the receiver unchanged.
- Treat the input as untrusted and drop it. See security.