tufanv Expert Licensed User Longtime User May 2, 2018 #1 Hello, I am getting: B4X: <B4IExceptionWrapper: Error Domain=caught_exception Code=0 "Error writing to stream: Error Domain=kCFErrorDomainCFNetwork Code=200 "(null)" UserInfo={kCFFTPStatusCodeKey=500, _kCFStreamErrorCodeKey=500, _kCFStreamErrorDomainKey=6}" UserInfo={NSLocalizedDescription=Error writing to stream: Error Domain=kCFErrorDomainCFNetwork Code=200 "(null)" UserInfo={kCFFTPStatusCodeKey=500, _kCFStreamErrorCodeKey=500, _kCFStreamErrorDomainKey=6}}> when I try to upload a file to my server using ftp. I have initialized the ftp with correct port username and password but the result is this error code. Any suggestions ?
Hello, I am getting: B4X: <B4IExceptionWrapper: Error Domain=caught_exception Code=0 "Error writing to stream: Error Domain=kCFErrorDomainCFNetwork Code=200 "(null)" UserInfo={kCFFTPStatusCodeKey=500, _kCFStreamErrorCodeKey=500, _kCFStreamErrorDomainKey=6}" UserInfo={NSLocalizedDescription=Error writing to stream: Error Domain=kCFErrorDomainCFNetwork Code=200 "(null)" UserInfo={kCFFTPStatusCodeKey=500, _kCFStreamErrorCodeKey=500, _kCFStreamErrorDomainKey=6}}> when I try to upload a file to my server using ftp. I have initialized the ftp with correct port username and password but the result is this error code. Any suggestions ?
Erel B4X founder Staff member Licensed User Longtime User May 2, 2018 #2 Have you set PassiveMode to true? Upvote 0
tufanv Expert Licensed User Longtime User May 2, 2018 #3 Erel said: Have you set PassiveMode to true? Click to expand... yes B4X: ftp.Initialize("ftp", "serverip", 21, "", "") ftp.PassiveMode=True Upvote 0
Erel said: Have you set PassiveMode to true? Click to expand... yes B4X: ftp.Initialize("ftp", "serverip", 21, "", "") ftp.PassiveMode=True
Erel B4X founder Staff member Licensed User Longtime User May 2, 2018 #4 Hard to say without more information. Make sure that your FTP server is open for regular FTP connections (not SFTP or FTPS). Upvote 0
Hard to say without more information. Make sure that your FTP server is open for regular FTP connections (not SFTP or FTPS).
tufanv Expert Licensed User Longtime User May 2, 2018 #5 Erel said: Hard to say without more information. Make sure that your FTP server is open for regular FTP connections (not SFTP or FTPS). Click to expand... I tried to conect with filezilla with normal ftp protocol and succeded without a problem. I will post here if i can find a solution. Thanks Upvote 0
Erel said: Hard to say without more information. Make sure that your FTP server is open for regular FTP connections (not SFTP or FTPS). Click to expand... I tried to conect with filezilla with normal ftp protocol and succeded without a problem. I will post here if i can find a solution. Thanks