it2be FTP Client: Javascript Error / The socket is EOF

Questions and answers on developing, deploying and using plugins and JavaBeans

it2be FTP Client: Javascript Error / The socket is EOF

Postby Bernd.N » Tue Mar 20, 2018 3:04 pm

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" );
   }
   
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

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

Postby Bernd.N » Tue Mar 20, 2018 7:37 pm

Scott answered me on https://support.servoycomponents.com

It is connected with this issue:
https://stackoverflow.com/a/36851296
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 544
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

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

Postby andre1506345542 » Mon Aug 12, 2019 1:26 pm

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
andre1506345542
 
Posts: 42
Joined: Mon Sep 25, 2017 3:19 pm


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 9 guests