Skip to content
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

Sometimes stuck at Start downloading... #40

Open
mariusvn opened this issue May 17, 2024 · 1 comment
Open

Sometimes stuck at Start downloading... #40

mariusvn opened this issue May 17, 2024 · 1 comment

Comments

@mariusvn
Copy link

Sometimes, when i want to download a jpeg file, the library print Start downloading... and wait indefinitly.

i am already in binary mode.

i think there is a time desync with the socket opening or something like that because it seems that the socket is listening and nothing is answered.

it does block there lib/src/commands/file.dart:94.

We use a Pure-FTPd as server.

I/flutter (29447): [2024-05-17 16:59:18.494143] Download /80/STM6001_DIA_001/SITE80_STM6001_DIA_001_2023-3-30T9_59_31.jpeg to /data/user/0/<APP ID PURPOSELY HIDDEN>/app_flutter/ftpfiles/SITE80_STM6001_DIA_001_2023-3-30T9_59_31.jpeg
I/flutter (29447): [2024-05-17 16:59:18.495056] > SIZE /80/STM6001_DIA_001/SITE80_STM6001_DIA_001_2023-3-30T9_59_31.jpeg
I/flutter (29447): [2024-05-17 16:59:18.800862] < FTPReply =  [code= 213, message= 213 135512]
I/flutter (29447): [2024-05-17 16:59:18.802551] > EPSV
I/flutter (29447): [2024-05-17 16:59:19.110779] < FTPReply =  [code= 229, message= 229 Extended Passive mode OK (|||40092|)]
I/flutter (29447): [2024-05-17 16:59:19.111523] > RETR /80/STM6001_DIA_001/SITE80_STM6001_DIA_001_2023-3-30T9_59_31.jpeg
I/flutter (29447): [2024-05-17 16:59:19.112454] Opening DataSocket to Port 40092
I/flutter (29447): [2024-05-17 16:59:19.442433] < FTPReply =  [code= 226, message= 150-Accepted data connection
I/flutter (29447): 150 132.3 kbytes to download
I/flutter (29447): 226-File successfully transferred
I/flutter (29447): 226 0.000 seconds (measured here), 282.76 Mbytes per second]
I/flutter (29447): [2024-05-17 16:59:19.445156] Start downloading...
@rafadompas
Copy link

I have the same problem with downloadfile and uploadfile. But only when Securitytipe = FTPES.

I/flutter (31721): [2024-05-18 19:14:41.078646] < FTPReply = [code= 150, message= 150 Ok to send data.]
I/flutter (31721): [2024-05-18 19:14:41.079077] Start uploading...
I/flutter (31721): porcentaje progreso: 34.04
I/flutter (31721): Total Recibido: 65536
I/flutter (31721): Tamaño fichero: 192512
I/flutter (31721): porcentaje progreso: 68.09
I/flutter (31721): Total Recibido: 131072
I/flutter (31721): Tamaño fichero: 192512
I/flutter (31721): porcentaje progreso: 100.0
I/flutter (31721): Total Recibido: 192512
I/flutter (31721): Tamaño fichero: 192512
I/flutter (31721): FTPConnectException: Timeout reached for Receiving response ! (Response: null)

If Securitytipe is FTP not have problem.
uploadfile send than the file is completed upload but the file in the server is 0 bytes.
and the code stops in the line uploadfile. not continues.
Please is very importan because is very dangerous use ftp without protection FTPES.
Olders versions packages not have this problem. 1.0.0 worked well with FTPES.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants