Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martouf

Re: Error listing directory on some FTP sites

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!
martin

Re: Error listing directory on some FTP sites

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.
amweiss

Re: Error listing directory on some FTP sites

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

Re: Error listing directory on some FTP sites

Your FTP servers seems not to support the passive mode:
> 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

Error listing directory on some FTP sites

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.