Why am I getting an End of File exception when using PutFileAsync?

0 votes
asked Nov 28, 2018 by kenswift (140 points)

I have a program that is uploading a number of large files and I would like to send these asynchronously, but I am receiving an End of File exception.

The async call is pretty straightforward:

Task task = _sftp.PutFileAsync(localPath, remotePath, null);

This method is called from within a foreach loop and after the loop there is a blocking call to wait for the files to complete processing


When I look at the status message of the taskList, I see the EOF exceptions. Below are a couple of the error messages from the logger:

2018-11-27 18:05:20.126 INFO Sftp(1)[13] Response: SSHFXPSTATUS (90, 1, 'End of file')

2018-11-27 18:05:20.133 ERROR Sftp(1)[13] Info: Rebex.Net.SftpException: End of file; End of file.
at Rebex.Net.GRU.NR(DIU I, Type R)
at Rebex.Net.Sftp.IKI(TOU I, YIU R, String O, Stream U, Int64 N, Int64 D, TEU V)

Thanks in advance for any help and guidance you can provide! I have been beating my head against my desk for days on this one.


Applies to: Rebex SFTP

1 Answer

0 votes
answered Nov 28, 2018 by Lukas Matyska (57,170 points)

Can you please send us complete log file to support@rebex.net for analysis?
Please, create it with LogLevel.Debug.

We need to see all actions the client requested.