0 votes
by (180 points)

I am connecting to a remote sftp server. I get a list of the files on the server and then download each one. I occassionally receive an exception with the message Message with invalid length 808465456 was received. I do not see much additional information from the exception that gives me a lot of information.

Code = UnknownError
Status = ServerProtocolViolation

What is the cause and how can this issue be resolved?

Applies to: Rebex SFTP
by (148k points)
Hello, which version of Rebex SFTP do you use?
by (180 points)
We are currently using 5.0.7501

1 Answer

0 votes
by (148k points)

Would it be possible to try Rebex SFTP 5.0.7999 or later?

There was a bug in earlier versions of Rebex SFTP/SSH in handling of oversized data packets sent by the server, and instead of failing with a relevant error message, it triggered "Message with invalid length [...] was received" error.

We fixed the client-side issue in Rebex SFTP R5.7 (5.0.7999). That version also adds a workaround for a server-side bug in Cerberus FTP Server 12 that was observed to send more data in a packet than it should.

by (180 points)
Thanks, I will upgrade and see what happens
...