-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloading file using FTPES causes Deadlock #27
Comments
The same happens to me. When I connect the server in FTPES type, it connects fine but it does not upload the file. it stops and generates the error "Timeout reached for Receiving response !". If I connect the server in FTP type, works perfectly. Can someone help? Thank you!!! With the version 1.0.1 works right. But it's obsolet with intl 1.18.1 |
Yes you can force But i'm not sure if it's the issue. |
I had the same problem. I was able to solve it by changing a portion of the library's code. The issue, in my case, was that the server had an unknown certificate, so when trying to download something with FTPES, it would get stuck on 'Start downloading...' because certificate issues were not being handled. I slightly modified the code in "lib/src/commands/file.dart". I left the download function as follows:
This way, we ignore the certificates and can download files. |
Code is working fine when using SecurityType.FTP. But when switching over to SecurityType.FTPES the applications gets stuck at Start downloading...
There is an error in the log which states that the size is not allowed in ascii mode:
[code= 550, message= 550 SIZE not allowed in ASCII mode]
After that it will be switched to TYPE A and the size is returned.
But on opening the DataSocket the code seems to try again in ASCII which might be part of the failure?
I tried to switch to TYPE A, but it had no effect.:
await ftpConnect.sendCustomCommand("TYPE A");
WinSCP is opening binary mode for the data connection which is working.
I tried setting the transfer type manully to await ftpConnect.setTransferType(TransferType.binary);
But it gets stuck on the same position. So it might has to do with the SSL handshake?
@salim-lachdhaf, thank you for your effort implementing this plugin! Do you have a clue why this fails? Is there a way to force binary download instead of ASCII Mode? Thank you!
Log from WinSCP using FTPES successfull:
Log from flutter:
The text was updated successfully, but these errors were encountered: