-
Notifications
You must be signed in to change notification settings - Fork 27
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
Beginning of file getting truncated under production conditions. #18
Comments
Hmm, that's unexpected -- I have used this module in production without seeing that happen. Since Just to check, what version of If you're using the latest version (v1.3.3), since I can't reproduce this issue and I can't find the problem by code inspection, as I see it there are 2 options for troubleshooting:
Let me know how you want to proceed. |
I'll give this a shot with the vanilla ftp module. I will get back to you with the results when I can, thanks! |
version is 3.10.8, btw. |
Could you double-check the |
oops, sorry version 1.3.2. |
I encountered a similar issue with getting empty buffers on small files. I tracked this down to ftp/lib/connection.js:617 - the socket starts out paused but as soon as the callback is called it is resumed. In normal callback mode the callback function would setup the stream reading events and everything would be ready to go when sock.resume() is called. With promise-ftp the then function after get ends up getting called after the sock.resume() and after a data event has already occurred. |
Sorry for the long delay. I can confirm the vanilla ftp module worked as expected. |
Getting a corrupted file while running code on the production server.
Opened it in hex editor to compare with the version that I received locally which was fine. Looks like a couple kb is truncated from the beginning of the file.
Here is the code.
The file itself is around 165mbs
The text was updated successfully, but these errors were encountered: