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

martin

Re: 501 Server cannot accept argument

I do not see what does this question have to do with WinSCP.
You should better ask it elsewhere, maybe on https://stackoverflow.com/
I also do not understand your second post. Afaik, FileZilla does not support FXP at all.
Anna1

Please help me

FileZilla utility ftp1 <-> ftp2 communicates normally.

Please help me..
anna1

501 Server cannot accept argument

Hello
Please Help me...
import sys 
from ftpext.ftpext import FTPExt
 
source = FTPExt("100.20.75.35", 21, "user1", "abc", False, False, 0)
target = FTPExt("200.12.62.15", 21, "user2", "def", False, False, 0)
 
# upload(copy) "FTP://100.20.75.35/test1/test1.txt"  to  "/test"
source.fxp_to("FTP://200.20.75.35/test1/test1.txt", target, "FTP://200.12.62.15/test", 'I')


===

Traceback (most recent call last):
File “c:\Users\abc\source\repos\import2.py”, line 8, in
source.fxp_to(“/test/test1.txt”, target, “/test”, ‘I’)
File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\site-packages\ftpext\ftpext.py”, line 244, in fxp_to

target.sendport(host, host_port) <============= Error 501 Server cannot accept argument

File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\ftplib.py”, line 296, in sendport
return self.voidcmd(cmd)
^^^^^^^^^^^^^^^^^
File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\ftplib.py”, line 286, in voidcmd
return self.voidresp()
^^^^^^^^^^^^^^^
File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\ftplib.py”, line 259, in voidresp
resp = self.getresp()
^^^^^^^^^^^^^^
File “C:\Users\abc\AppData\Local\Programs\Python\Python312\Lib\site-packages\ftpext\ftpext.py”, line 123, in getresp
raise ftplib.error_perm(resp)
ftplib.error_perm: 501 Server cannot accept argument.