174
Views
6
Comments
[Extension FtpWebRequest] OsFtpWebRequest method GetDirAndFileList unable to request to FTP server
Question
extension-ftpwebrequest
Service icon
Forge asset by Daniel Lourenço

Hi ,

We are using Extension FtpWebRequest to get files from FTP to application server.

Using GetDirAndFileList method to read files.

Its working fine on one server , its sending request to FTP and getting back list of files.

But same code we deployed on other server its returning command ok, but list of files is empty.

From same server we can connect to FTP using CMD, FileZilla and read files. So connection to ftp is ok from server.


We tried to check request trace found that request not going to FTP from Out systems application.

Please let us know what is the issue root cause and resolution for this.

Thanks,


2021-08-30 15-28-09
Leandro Correa

Hi Shirish Bathe,

Did you found some log in the Service Center? 

2021-08-30 15-28-09
Leandro Correa

Hi Shirish Bathe,

Another tip is verify the connectivity to FTP service from the OutSystems Front-End server.

The FTP Service use the 20 and 21 TCP ports, maybe it's not allowed in the infrastructure.

UserImage.jpg
Shirish Bathe

Hi Leandro,

We don't have logs in service center. for FTP issue. Also we tried to connect from FE server using Command line, Power shell to FTP its working fine. Even FileZilla also works on server.

From extension we are getting response command OK , count 0. But there are lot of files on FTP server which is unable to read by extension and download it.

Same extension works on UAT server thats why difficult to understand the issue.

Please assists here as its PROD issue.

Thanks


  

2023-12-28 16-01-00
Sérgio Trindade

did you find a solution for this problem?

thanks

2021-08-30 15-28-09
Leandro Correa
Hi Sergio, Did you check your network permissions? The 20 and 21 TCP ports is necessary to FTP communicatios between OS Server and FTP Server. Regards, Leandro.
2021-08-30 15-28-09
Leandro Correa

Maybe you can try to set a longer timeout, because of list files size in the extension source code.


Regards,

Leandro. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.