Error codes

Edit this page

SRV026

A binary limit option is invalid.

  • Error: RangeError
  • Step: none
  • Fields: only code. This is a standard RangeError, because the cause is how the function is called, not the data.

What it means

The maxArrayBufferLength or maxArrayLength option of binary mode is not a non-negative safe integer. Development builds name the option in the message.

Common causes

  • A negative number, a fraction, NaN or Infinity.
  • A string read from configuration, such as "1000000".

How to fix it

  • Pass a whole number from 0 to Number.MAX_SAFE_INTEGER, or leave the option out to use the default of 1000000. See Untrusted input.