jimmywarting / StreamSaver.js

StreamSaver writes stream to the filesystem directly asynchronous
https://jimmywarting.github.io/StreamSaver.js/example.html
MIT License
3.95k stars 413 forks source link

Endless download #296

Closed benjaminpreiss closed 1 year ago

benjaminpreiss commented 1 year ago

I am trying to use streamsaver in an app of mine, but sadly the download never stops. It does always download a seemingly random sized batch of data. I created a reproduction codesandbox here for testing. Tested on the latest versions of brave and firefox.

Screenshot 2022-11-13 at 12 05 45
benjaminpreiss commented 1 year ago

My fault, I forgot to properly close() the controller of the readable stream :/

This is the now working codesandbox