Topic "Error listing directory on some FTP sites"

Author Message
amweiss
[View user's profile]

Joined: 2017-02-17
Posts: 2
Hi

I was unable to list directory from one FTP site using WinSCP scripting, and I also get same error on the WinSCP UI.
See attached session log file.

I also tested using windows command prompt, which worked correctly.
Cmd Log.png (22.42 KB) Private file

Description: (none)

ftplog.txt (5.65 KB) Private file

Description: Session Log

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
Your FTP servers seems not to support the passive mode:
Code:
> 2017-02-17 12:37:21.456 PASV
< 2017-02-17 12:37:21.534 502 command not implemented.

Try turning it off:
https://winscp.net/eng/docs/ui_login_connection
amweiss
[View user's profile]

Joined: 2017-02-17
Posts: 2
Thanks for your response.
You are right, this was the issue.
However why not automatically switch to active mode? Same as FileZilla. or at-least clarify the error message.

Thanks again.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
amweiss wrote:
However why not automatically switch to active mode? Same as FileZilla. or at-least clarify the error message.

Sure, this can be improved. However this happens so rarely, that active mode works, and passive does not, that it's hardly worth the effort.
martouf

Guest


martin wrote:
amweiss wrote:
However why not automatically switch to active mode? Same as FileZilla. or at-least clarify the error message.

Sure, this can be improved. However this happens so rarely, that active mode works, and passive does not, that it's hardly worth the effort.


It seems like a reasonable request and would provide a "least surprise" exception handling for the user. "Do the right thing" in the face of exceptions is always appreciated!
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License