0 votes
by (120 points)
edited

I am using Rebex.Net.Sftp and keep getting invalid decoder state when trying to download large files (from 500mb to 2.0Gb) what is the root cause for this?

1 Answer

0 votes
by (58.9k points)
edited

Please replicate the problem once again and create the log using the LogWriter property of the Sftp object as described here. Either post it here or send to support@rebex.net. We should be able to tell what is going on then.

by (120 points)
edited

We actually do not have that dll in our package where can I get it?

by (58.9k points)
edited

There definitely should be either Common dll or ProxySocket dll in the package. Is there? What version are you using?

by (120 points)
edited

I have proxySocket, where does the log have to go? just after connecting?

by (58.9k points)
edited

Depends on what you want to log, for your case anywhere after creating new Sftp object and before calling the method which results in the "Inavlid decoder state" exception.

e.g.

Sftp sftp = new Sftp();
sftp.Connect(...);
sftp.Login(...);
//...

sftp.LogWriter = new Rebex.FileLogWriter(@"c:\temp\log.txt", Rebex.LogLevel.Debug);
// failing method:
sftp.Download("largeFileName", "C:\\temp\\largeFileName");
//...
sftp.Disconnect();

Thank you!

...