*web/sftp

Started by Peter.Higgins, July 11, 2022, 08:28:30 PM

Previous topic - Next topic

Peter.Higgins

At one location, CALL "*web/sftp;receive" returns the sporadic error below.  I have tried PO/OUT /PO/OUT ~/PO/OUT & /~/PO/OUT and still get the error a few times a day.  File: is the FilesToReceive variable sent.

*web/sftp;receive:Error: /~/PO/OUT not found on server.
File: /~/PO/OUT|B0

Is there a way to debug this?

Devon Austen

Hi Peter,

If you can sometimes download the file and other times you can't that would possibly indicate the issue is on the sftp server. Likely sometimes the file is locked by a program updating it for example. The best you can do in that situation is to handle errors like that by trying again a few times before giving up.

Another probably less likely possibility is that sometimes your current directory is different so maybe using a absolute path would help /HOME/USERNAME/PO/OUT
Principal Software Engineer for PVX Plus Technologies LTD.

Peter.Higgins

Thanks Devon,
I was thinking with some hope bias that this was ignorable.