ftp.livedrive.com Invalid FTP response

0 votes
asked Mar 6 by Ivan (120 points)


One of our clients uses livedrive, and gets an error during the download from ftp.livedrive.com

We tested this, and during the downloading, the following error occurs:

Rebex.Net.FtpException: Invalid FTP response (B0).

To reproduce this issue, we used test "Rebex" client with the latest "Rebex" library.

I attached the log.

Any ideas?


Applies to: Rebex FTP/SSL

1 Answer

0 votes
answered Mar 7 by Pavel Matyska (10,460 points)


Thank you for the logs, they helped a lot. The verbose log revealed a bug on the server side. It wrongly ended one response with double line ends which broke reading next response on client side. Fortunately, you can use

Ftp.Settings.EnableControlConnectionFlushing = true;

to workaround this invalid response. Using this setting our client reads and forgets all pending data after each response was successfully parsed, so the second line end will not interfere with the next response.

commented Mar 9 by Ivan (120 points)
We still have the issue with EnableControlConnectionFlushing = true.

I've attached our log.

Any ideas?

P.S. There is a Trial period for livedrive.com. You can try to connect to ftp.livedrive.com and reproduce this issue.

commented Mar 9 by Pavel Matyska (10,460 points)

can you please create a verbose log as you did before and send it back to us for analysis? You can set verbose log after you log in to the ftp server to omit security information of the user in the log.

P.S. I was not able to get trial access to the ftp.livedrive.com without a credit card information.
commented Mar 11 by Ivan (120 points)

Verbose log:

ftp.LogWriter = new CustomLogWriter(LogLevel.Verbose,log, "FTP-LOG: ");