-
Notifications
You must be signed in to change notification settings - Fork 299
add with 1MB file triggers Uncaught Error: stream.push() after EOF #967
add with 1MB file triggers Uncaught Error: stream.push() after EOF #967
Comments
Also of note, in ipfs-webui we use https://github.com/tableflip/pull-file-reader which has a default chunk size of 1MB https://github.com/tableflip/pull-file-reader/blob/master/index.js#L8 which suspiciously conincides with the threshold for triggering this issue. |
@hugomrdias this is blocking a relase of webui and desktop. Are you digging in to it or should I jump on it? |
investigating this some more...
|
im on it, will report back asap |
@hugomrdias I'm on it. The problem seems to be in pull-file-reader |
But this worked before right? what changed in ipfs to trigger this problem? |
It sure did! I think something else must have been dealing with it, when it should always have been an error. I just added a quick, "count the pending chunks" check to pull-stream-reader and it fixes it! Will PR a cleaner fix now. |
@hugomrdias oh no wait, you are right, this is super weird, the pull-stream sink should not be asking for more chunks before it gets a callback from the previous one... that's the weirdness that is causing this. I could guard against it in pull-file-reader, but it seems like we have a rogue pull-stream sink in ipfs now that is just pulling as fast as it can, rather than waiting for each chunk |
Moved the guard to pull-to-stream, and we have a fix! hugomrdias/pull-to-stream#1 |
This switches pull-to-stream to v0.1.1 which includes a fix for ipfs-inactive#967 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
This switches pull-to-stream to v0.1.1 which includes a fix for ipfs-inactive#967 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
This switches pull-to-stream to v0.1.1 which includes a fix for #967 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
Update ipfs-redux-bundle to ensure latest ipfs-http-client is used with fix for ipfs-inactive/js-ipfs-http-client#967 License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
- Update ipfs-redux-bundle to ensure latest ipfs-http-client is used with fix for ipfs-inactive/js-ipfs-http-client#967 `let files = await filesOrPromise` was leaving the FileList empty where it was a FileList rather than a promise of a FileList. No idea why yet, but this fixes it for now. License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
Uploading a file > 1MB, as a pull-stream fails, with the error:
The issue is occuring in master on webui.ipfs.io since upgrading v30.1.2 from v29.1.0
See: ipfs/ipfs-webui#1010
The text was updated successfully, but these errors were encountered: