Page 1 of 1

it2be FTP Client: Javascript Error / The socket is EOF

PostPosted: Tue Mar 20, 2018 3:04 pm
by Bernd.N
We created basic code to connect to a SFTP folder.
When trying to connect, we get

Before if()
JAVASCRIPT ERROR
The socket is EOF


The "Before if()" is our application.output(), so the jSFTP_Client.connect() seems to fail.

What could be gone wrong?

This is the code we used (quite similar to the sample code):

Code: Select all
function testSFTPFunctions(event) {
   
   var sAccountInfo = plugins.it2be_ftp.createPasswordSettings("host", "username", "password");
   
   var   jSFTP_Client = plugins.it2be_ftp.createSFTPclient(sAccountInfo);
   
   var   aFiles = [];

   
   application.output( "Before if() " );
      
   if ( jSFTP_Client.connect() ) {
   
      application.output( "SFTP connection" );
      
      aFiles = jSFTP_Client.list("test");
      
      application.output( aFiles.length );
      
      jSFTP_Client.disconnect();
   }
   else {
      
      application.output( "No SFTP connection" );
   }
   

Re: it2be FTP Client: Javascript Error / The socket is EOF

PostPosted: Tue Mar 20, 2018 7:37 pm
by Bernd.N
Scott answered me on https://support.servoycomponents.com

It is connected with this issue:
https://stackoverflow.com/a/36851296

Re: it2be FTP Client: Javascript Error / The socket is EOF

PostPosted: Mon Aug 12, 2019 1:26 pm
by andre1506345542
Hi Bernd
I post this message as Scotts anwser is not longer on the mentioned website.
If you still remember, could you explain what you did to fix this.
Many thanks
Andre