Error codes

Edit this page

SRV007

A typed array has a type that seroval does not know.

  • Error: SerovalUnknownTypedArrayError
  • Step: parse
  • Fields: none.

What it means

A value is a typed array, but not one of the types that seroval supports, so it cannot be serialized. Seroval finds the type with instanceof and does not read a name from the value.

Common causes

  • The value is a newer typed array, such as Float16Array.

How to fix it

  • Convert the value to a supported typed array before serializing it, for example a Float32Array or a Uint16Array of the same bytes.
  • Write a plugin for the type.