Error codes

Edit this page

SRV024

A binary node is followed by a node of the wrong type.

  • Error: SerovalUnexpectedBinaryTypeError
  • Step: none
  • Fields: none. Development builds name the node types in the message.

What it means

A node refers to a value of the wrong node type, for example a BigInt whose digits are not a String.

Common causes

  • 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

  • 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.