SFTP Connect Delphi (Unrecognized Error) - WeOnlyDo Discussion board

SFTP Connect Delphi (Unrecognized Error) (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Carlos Silva, Tuesday, March 27, 2018, 20:58 (2215 days ago)

Hi,

I am making the connection to SFTP and are returning this error message when I connect.

The same script works for other SFTPs, only one in spec does not work.

SFTP.Blocking := True;
SFTP.Hostname := 'sftp.test.com.br';
SFTP.Login := 'login';
SFTP.Port := 22;
SFTP.TransferMode := 0;
SFTP.Password := 'pass';
SFTP.Authentication := authPassword;
SFTP.ProxyType := proxyNone;
SFTP.Timeout := 30000;
SFTP.Connect;

Error Message "Unrecognized Error"

I dont have idea what it is.

Help Please.

SFTP Connect Delphi (Unrecognized Error)

by wodSupport, Tuesday, March 27, 2018, 21:24 (2215 days ago) @ Carlos Silva

Hi Carlos,

I cannot be sure as well. Are you use licensed or DEMO version? Is there possibly Connect1 method in Delphi (since Connect is protected, they rename our to Connected1)?

Do you have error number as well (LastError property)?

Any chance we can try to connect there?

Jasmine.

SFTP Connect Delphi (Unrecognized Error)

by Carlos Silva, Tuesday, March 27, 2018, 22:02 (2215 days ago) @ wodSupport

Hi,

I'm using the licensed version.

The error number was "-1", ErrorText [SFTP.LastError] - "Unrecognized Error"

I do not understand (Is there possibly Connect1 method in Delphi (since Connect is protected, they rename our to Connected1)?)

SFTP Connect Delphi (Unrecognized Error)

by wodSupport, Tuesday, March 27, 2018, 22:06 (2215 days ago) @ Carlos Silva

Carlos,

Delphi objects have 'Connect' method internally, they would hide our 'Connect' method, so internally they rename it to 'Connect1'. So, if you can check if there is Connect1 method, use it instead, since that actually points to wodSFTP.Connect (only in Delphi).

If this is not the case, then we have to duplicate this issue. Can you please allow us to try to connect to this server? You can send details to techsupport - at - weonlydo.com

-1 means exactly that.. We have no idea what happened. This could, for example, happen if connection was established and immediately dropped by the server gracefully.. And we have no idea why.

Thanks,
Jasmine.