0 votes
by (170 points)

Rebex.Net.SftpException: The server has closed the connection.
at oipb.lojn(Int32 arr)
at oipb.lojp(ruhe& aru)
at oipb.lojm(UInt32 arp, Boolean arq)
at oipb.loip(UInt32 apb, oiok apc)
at Rebex.Net.Sftp.jlvr(oiqc ra, oiok rb, String rc, Stream rd, Int64 re, Int64 rf, rtup rg)
at Rebex.Net.Sftp.jlvp(oiqc qm, oiok qn, String qo, String qp, Int64 qq, Int64 qr, Int64 qs, rtup qt)
at Rebex.Net.Sftp.jlvo(oiqc qf, String qg, String qh, Int64 qi, Int64 qj, Int64 qk, rtup ql)
at Rebex.Net.Sftp.PutFile(String localPath, String remotePath)

getting this type of exception ReadApiExcepionAndThrow Exception

Applies to: Rebex SFTP

1 Answer

0 votes
by (144k points)

This exception indicates that the SFTP session's TCP connection has been closed, and that it has not been done by the client. That could be a result of a connectivity failure, server shutting down, or server-side or client-side bug.

If this is happening regularly, create a debug log using Sftp object's LogWriter property. This will show the error in the context of previous communication, hopefully making it possible to determine what's going on. You could post the log here or mail it to support@rebex.net for analysis.