WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: MW4 on July 13, 2016, 07:35:44 PM

Title: iFtpGet errors
Post by: MW4 on July 13, 2016, 07:35:44 PM
I am using iFTPget to grab a file and I get the following errors using
lasterr = iGetLastError()
lastresp = iGetResponse()
Message("iFtpget Last Error: %lasterr%", lastresp)

200  Switching to ASCII mode
227  Entering Passive mode (69,25,174,18,86,16)
550  Could not get file size
550  failed to open file

It runs, appears to download, and never delivers the file.
Using filezilla, I can log in manually and get the file, with no issues.

Can anyone interpret these errors and point me in the right direction.
Title: Re: iFtpGet errors
Post by: td on July 13, 2016, 08:05:31 PM
If you perform an internet search on your error messages, you will notice that most comments involve something being off on the local file system but it could also be the result of some kind of permission issue on the server.  Another cause listed on some discussion forums mentions an unquote file name that has a space or spaces in the name.   However, given the paucity of information about the parameters to the various extender function, type and UAC state of the user account running the process, and the version of the OS the script is running on, it is difficult to make any additional comments or observations. 

Using Filezilla successfully could easily be because it is running in a slightly different context. 
Title: Re: iFtpGet errors
Post by: td on July 14, 2016, 08:11:50 AM
Also notice that your post does not include the return value from the 'iGetLastError()' function which should be a 5 digit system error. 
Title: Re: iFtpGet errors
Post by: MW4 on July 14, 2016, 09:17:42 AM
12003
Title: Re: iFtpGet errors
Post by: MW4 on July 14, 2016, 10:05:53 AM
conhandle comes in at 13369352
Title: Re: iFtpGet errors
Post by: td on July 14, 2016, 10:08:38 AM
Quote from: MW4 on July 14, 2016, 09:17:42 AM
12003

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WIL~Extenders/WinInet+12003~ERROR_INTERNET_EXTENDED_ERROR.txt
Title: Re: iFtpGet errors
Post by: MW4 on July 14, 2016, 10:30:33 AM
OMG.... 
It was an extra period.

More coffee please  :)
Title: Re: iFtpGet errors
Post by: td on July 14, 2016, 12:59:59 PM
Neither the first nor the last...