Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upend-of-stream >=1.4.2 update creates a "premature close" error on seed() when using a W3C File input #1757
Comments
This comment has been minimized.
This comment has been minimized.
|
Yep. Thanks for notifying this @Evoks. Looks like |
This comment has been minimized.
This comment has been minimized.
|
Is there any plan for this issue to be solved? Is there a known workaround to make the most minimal upload functionality work at least? All examples and documentation for uploading a file are broken out of the box using the latest release versions. Always "premature close" in the console after a short delay. EDIT: The occasional rare file will consistently work correctly, but it seems unpredictable which files are working. This behavior can be observed on instant.io using Chromium 70. |
This comment has been minimized.
This comment has been minimized.
|
@umbra-scientia Webtorrent just requires ^1.1.0 so what I ended up doing was explicitly requiring end-of-stream@1.4.1 in my dependencies, and that solved the problem for me. Hope it helps |
* Run yarn upgrade * Handle some upgrade issues * Fix some build typing issues * Fix a linting rule * Fix all version mismatches * Sync all package versions * Fix some webpack ts loader issues * Fix rps react testing issue * Fix wallet gas test * Revert web3torrent * Clean up dependencies * Fix end-of-stream due to webtorrent/webtorrent#1757 * ignore '@typescript-eslint/ban-ts-ignore': 'off', * Downgrade react-dev-utils * Remove rps.ts script * Update package semvers * Sync versions * Fix end-of-stream * Upgrade ethers to 0.4.44 * Set terser parallel to false on CI
What version of this package are you using?
0.107.16
What operating system, Node.js, and npm version?
Mac OS 10.14.6 / Chrome 77.0.3865.90 or Safari 13 / Node 12.0.0 / npm 6.11.3
What happened?
On browser, when I call the
seedmethod using a W3C File input, "end-of-stream" is throwing an error :It adds the torrent in the WebTorrent client but the
torrent.files === []andtorrent.done === false.If I put the 1.4.1 end-of-stream package, there is no problem.
What did you expect to happen?
And the
torrent.filesshould contain the input data andtorrent.doneshould betrue.