salim-lachdhaf / dartFTP

dartFTP
MIT License
8 stars 16 forks source link

Error in connection with FTPS help me #29

Open nicolarigoni opened 8 months ago

nicolarigoni commented 8 months ago

I'm trying to make a FTPS connection but it did't work my code:

FTPConnect ftpConnect = FTPConnect('devftp.made.net', user: AccountManager.instance.agente!.companyConfiguration!.usernameFTP, pass: AccountManager.instance.agente!.companyConfiguration!.passwordFTP, showLog: kDebugMode, port: 21, securityType: SecurityType.FTPS); await ftpConnect.connect();

here is the log:

`flutter: [2023-12-06 15:19:25.576751] Connecting... flutter: [2023-12-06 15:19:25.613803] Connection established, waiting for welcome message... flutter: [2023-12-06 15:19:25.918900] < FTPReply = [code= 220, message= 220 Welcome on Made in App FTP server. Shaken, not stirred.] [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: HandshakeException: Handshake error in client (OS Error: WRONG_VERSION_NUMBER(tls_record.cc:231))

0 _SecureFilterImpl._handshake (dart:io-patch/secure_socket_patch.dart:99:46)

1 _SecureFilterImpl.handshake (dart:io-patch/secure_socket_patch.dart:143:25)

2 _RawSecureSocket._secureHandshake (dart:io/secure_socket.dart:920:54)

3 _RawSecureSocket._tryFilter (dart:io/secure_socket.dart:1049:19)

`
salim-lachdhaf commented 6 months ago

did you tried with FTPES ?