Invalid Decoder State

0 votes
asked Feb 15, 2013 by zhyid (120 points)
edited Feb 22, 2013

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
answered Feb 18, 2013 by Tomas Knopp (58,890 points)
edited Feb 22, 2013

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.

commented Feb 18, 2013 by zhyid (120 points)
edited Feb 18, 2013

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

commented Feb 19, 2013 by Tomas Knopp (58,890 points)
edited Feb 19, 2013

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

commented Feb 22, 2013 by zhyid (120 points)
edited Feb 22, 2013

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

commented Feb 22, 2013 by Tomas Knopp (58,890 points)
edited Feb 22, 2013

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!

...