-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting FILE_ENDED with some routes through code #231
Comments
Trying to narrow this down more - the What is definitely is not working is:
|
Any updates on this ? |
@brendanprice2003 Sorry, no. I had to move on to something else and this got left behind. I'll try and dig into the latest code and logs and see if it is still an issue. |
It still is an issue. I am running the latest version of unzipper yet FILE_ENDED still persists. I am using |
@brendanprice2003 Do you have a file that breaks the code that you can share? I was not able to share the ones that broke it for us, and it was only a very small fraction of files that broke. |
The file that breaks the function doesnt make a diffefence. It was simply a case of it working one day then the next its not. All I am using is a zip folder of an Assetto Corsa car. But yes, I had the above code working just fine one minute then the next it just stopped working for no conceivable reason. |
Oh - that's very worrying. In the use case I had it was lots of files being sent through the same processing code, and some would fail - I didn't have a good path to retest them, so had assumed it was a problem in the file, not some randomness in the code. |
Yes, It is worrying. Taking into account that the non-working versions of my application are NOT signed. However when it is tested on my local machine through a compiled app or VScode CLI, it works perfectly fine. So that MAY be a problem but it didn't get in the way when we initially tested it; it worked perfectly. Here is how I am using the module
For whatever reason the contents of If this can't get fixed then I do need an alternative way to unzip a file via the stream as I don't want to be downloading a file to a directory then unzipping, which is then unzipped to another directory. |
Coming back to this; I had managed to get this same code working again, by refactoring my server side and how it sends the information back. I had made some changes on the client-side also but I'm sure that isn't the reason why it's working now.
Some additional information is now being sent by the client to the renderer process (UI). What I would recommend is make sure that the unzipper has the correct and sufficient information. After looking over what the unzipper function is actually receiving I realized that it was wrong. Thanks. |
I get this same exact error but only on large files. For example a file that goes from 90mb to 2 gigs is fine but one that goes from 250mb to 5 gigs will throw this error about half way through. |
Please review how you are using the file path, for example use static file paths instead of paths that reference a file using I had the same issue, as stated above, however, I cannot remember how exactly I fixed it. The type of files inside of the My guess is probably as good as yours. Good luck. |
Any updates on this? |
You have probably moved on from this issue by now, but for the sake of future repository viewers; You should be able to validate what type of files you sending inside of the If your problem still persists I suggest looking at other solutions for unzipping archives. |
There was an issue with node's zlib integration that was only recently reverted (I'm not sure in which releases): nodejs/node#45268 For us, our unzipper code works fine on node 18, but breaks with FILE_ENDED on node 20. It's very consistent - on certain node versions it always works with any zipfile; on later versions it always breaks. It also seems to be platform dependent. It's caused a lot of drama and I think there's still no root cause been found besides "something to do with SIMD extensions" |
For a given ZIP file (small, ~7KB containing just two files) I can open the file with the OS (macOS 11.1) and the code below has one path that opens and extracts the zip file, the other throws the FILE_ENDED error.
It looks a bit like the issue in #75 as a callstack for the error was very similar.
I'm using the latest npm version of the code - 0.10.11.
I can't share the problem file publicly I'm afraid.
The text was updated successfully, but these errors were encountered: