Error codes

Edit this page

SRV027

An ArrayBuffer is larger than maxArrayBufferLength.

  • Error: SerovalArrayBufferLimitError
  • Step: none
  • Fields: limit, the maxArrayBufferLength in effect.

What it means

An ArrayBuffer in a binary payload is longer than the maxArrayBufferLength option, 1,000,000 bytes by default. Binary mode rejects it as soon as it reads the length, before the bytes arrive.

Common causes

  • The data holds a large binary value, such as a file or an image.
  • Input built on purpose to make the receiver allocate a large buffer.

How to fix it

  • Raise maxArrayBufferLength on the receiver if large buffers are expected. See Untrusted input.
  • Send large files another way, for example as a separate download.