Reading an stream and decoding Uint8Array (a valid ArrayBuffer), is throwing an error. However in the browser it works fine because Uint8Array is an ArrayBuffer
const text = new TextDecoder().decode(value);
^
TypeError: TextDecoder.decode expects an ArrayBuffer or TypedArray
code: "ERR_INVALID_ARG_TYPE"
Reading an stream and decoding
Uint8Array
(a validArrayBuffer
), is throwing an error. However in the browser it works fine becauseUint8Array
is anArrayBuffer