- Error:
SerovalArrayLengthLimitError - Step: none
- Fields:
limit, themaxArrayLengthin effect.
What it means
An array in a binary payload states a length above the maxArrayLength option, 1,000,000 by default, or the holes of all arrays in the payload add up to more than it. An array states its length up front and its holes take no bytes, so without the limit a few bytes could claim an array of billions of holes.
Common causes
- The data holds a very long or very sparse array.
- Input built on purpose to make the receiver allocate a large array.
How to fix it
- Raise
maxArrayLengthon the receiver if long or sparse arrays are expected. See Untrusted input. - Send long lists in pages or as a stream.