Skip to content
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

When I use fastGet times error: sftp: Can not skip back in messages #1434

Open
StrongerLph opened this issue Dec 16, 2024 · 1 comment
Open
Labels

Comments

@StrongerLph
Copy link

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+

@mscdex
Copy link
Owner

mscdex commented 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 of fastGet() so that it always reads sequentially instead of possibly out-of-order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants