Closed
Description
When I use this tool library to back up files from a shared directory on a remote server to a locally specified directory, this error occurs:
Error: fastGet->sftp: Can not skip back in messages. Remote: \OUT\Euroclear - R20 - ALL (LUNCH) - 04Dec2024-063007.TXT Local: C:\Report\SFTP_Automation\R20\Euroclear - R20 - ALL (LUNCH) - 04Dec2024-063007.TXT
I have no way to provide a reproducible environment because this is a production environment issue, of course, most of the time it works fine, only occasionally this error occurs. I'm not sure what caused the problem, I tried Googling the topic but found no useful answers. Has anyone encountered the same problem and solved it?
ssh2-sftp-client: v10.0.3
ssh2: v1.15.0
node: v18+
Activity
mscdex commentedon Dec 16, 2024
Probably a buggy/incomplete SFTP implementation on the remote side. For that server you'd probably have to use something like
createReadStream()
instead offastGet()
so that it always reads sequentially instead of possibly out-of-order.