ardatan/whatwg-node

consumeStreamAsFile fails with large files

alexlag opened this issue · 1 comments

Describe the bug

Large enough files (646mb in my case) causes RangeError: Invalid array length in

To Reproduce
Steps to reproduce the behavior:

  1. I used graphql-mesh-upload example
  2. Try uploading large file
  3. mesh crashes

Expected behavior
Successful upload

Environment:

  • OS: MacOSX 11.6.6
  • @whatwg-node/fetch: 0.4.7
  • NodeJS: v16.15.1

Additional context

Seems to be working fine after 0.5.0