ListDir error 40500 - WeOnlyDo Discussion board

ListDir error 40500 (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Nicholas Kellner, Monday, June 11, 2018, 09:21 (2147 days ago)

Hello,

I'm using the command ListDir and it comes back with error code 40500 (Command not understood).

I'm using the same code/command on other ftp-servers and it works fine, so I guess it is a problem with a specific FTP-server.

Is there a setting on the FTP-server I should check for or do you have any other tip?

ListDir error 40500

by wodSupport, Monday, June 11, 2018, 10:46 (2147 days ago) @ Nicholas Kellner

Hi Nicholas,

I think if you empty value of ListParams property will fix your problem:
https://www.weonlydo.com/FtpDLX/Help/wodFtpDLX-object-ListParams-property.html

Can you try that?
Jasmine

ListDir error 40500

by Nicholas Kellner, Tuesday, June 12, 2018, 21:45 (2146 days ago) @ wodSupport

Hi Nicholas,

I think if you empty value of ListParams property will fix your problem:
https://www.weonlydo.com/FtpDLX/Help/wodFtpDLX-object-ListParams-property.html

Can you try that?
Jasmine


Hi Jasmine,

I tried to add put_ListParams("") before the ListDir command, but that did not help. Do you have any other ideas?

Krgds,

Nicholas

ListDir error 40500

by wodSupport, Tuesday, June 12, 2018, 22:01 (2146 days ago) @ Nicholas Kellner

Hi Nicholas,

in that case I would suggest you use FTPReply event and it's Command and ReplyCode/ReplyText to track exactly what's sent/received.

You can then check what other client (which I'm sure can provide same debug info) sends and see how is wodFtpDLX different.

Can you try that?

I assume you use FTP protocol. If this is not the case please let me know.

Jasmine.

ListDir error 40500

by Nicholas Kellner, Wednesday, June 13, 2018, 09:03 (2145 days ago) @ wodSupport

Hi Nicholas,

in that case I would suggest you use FTPReply event and it's Command and ReplyCode/ReplyText to track exactly what's sent/received.

You can then check what other client (which I'm sure can provide same debug info) sends and see how is wodFtpDLX different.

Can you try that?

I assume you use FTP protocol. If this is not the case please let me know.

Jasmine.

Hello Jasmine,

Yes, it's FTP. Here is the log you asked for from two diffrent sites:

From a not working site
-------------------------------
200 Type set to A.
200 MODE Z ok.
200 MODE Z LEVEL set to 6.
227 Entering Passive Mode (62,182,216,115,144,52)
500 Command not understood.


From a working site
-------------------------------
200 Type set to A.
504 MODE Z not allowed from your IP
227 Entering Passive Mode (172,29,1,24,216,169)
150 Opening data channel for directory listing of "/"
226 Successfully transferred "/"

Any ideas?

ListDir error 40500

by wodSupport, Wednesday, June 13, 2018, 10:48 (2145 days ago) @ Nicholas Kellner

Hi Nicholas,

as seems, there's issue with MODE Z - compression. If you set Ftp1.Compression = 0, does it work then?

Jasmine.

ListDir error 40500

by Nicholas Kellner, Wednesday, June 13, 2018, 12:02 (2145 days ago) @ wodSupport

Hi Nicholas,

as seems, there's issue with MODE Z - compression. If you set Ftp1.Compression = 0, does it work then?

Jasmine.

Hi Jasmine,

No, it comes back with "501 'Z LEVEL 0': 'MODE' options not understood."

The HELP command with FileZilla shows the following:
Svar: 214-The following commands are recognized (* => unimplemented).
Svar: OPTS CLNT CSID NOOP HELP FEAT HOST USER PASS
Svar: REIN QUIT ACCT* SMNT* SITE ABOR SYST STAT AUTH
Svar: PBSZ PROT CCC SSCN CWD XCWD CDUP XCUP PWD
Svar: XPWD MKD XMKD RMD XRMD RMDA DSIZ AVBL PORT
Svar: EPRT PASV EPSV TYPE STRU MODE RETR STOR APPE
Svar: STOU THMB ALLO REST SIZE RNFR RNTO DELE XDEL
Svar: MDTM MFMT MFCT MFF XCRC XMD5 XSHA1 XSHA256 XSHA512
Svar: COMB LIST NLST MLST MLSD
Svar: 214 End

Does it help?

Krgds Nicholas

ListDir error 40500

by wodSupport, Wednesday, June 13, 2018, 13:01 (2145 days ago) @ Nicholas Kellner

Hi Nicholas,

I'm looking at the source now. If error is returned, it is ignored by the component and it continues to work without the compression. So this shouldn't be the problem you're experiencing.

Any chance we can connect there to try it out? Can you send us IP and login details to techsupport - at - weonlydo.com ?

BTW just to be 100% sure, you are using wodFtpDLX ActiveX, right?

Thanks,
Jasmine.

ListDir error 40500

by Nicholas Kellner, Wednesday, June 13, 2018, 19:24 (2145 days ago) @ wodSupport

Hi Nicholas,

I'm looking at the source now. If error is returned, it is ignored by the component and it continues to work without the compression. So this shouldn't be the problem you're experiencing.

Any chance we can connect there to try it out? Can you send us IP and login details to techsupport - at - weonlydo.com ?

BTW just to be 100% sure, you are using wodFtpDLX ActiveX, right?

Thanks,
Jasmine.

Hello Jasmine,

I will send to an email with further details.

BR Nicholas