Error codes

Edit this page

SRV025

A binary node refers to a value that was not declared.

  • Error: SerovalMissingBinaryRefError
  • Step: none
  • Fields: none. Development builds give the id in the message.

What it means

A node refers to an id whose value is not in the reference map, for example a reference to a value from an earlier payload that this map never decoded. An id that no node declared is SRV022 instead.

Common causes

  • A value from an earlier payload was decoded with a different reference map.
  • Payloads that share references were decoded out of order.
  • 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

  • Decode payloads in the order they were sent, with the same reference maps.
  • 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.