503 error in script - GUI works perfectly

Advertisement

bbachtell
Joined:
Posts:
2
Location:
Texas

503 error in script - GUI works perfectly

I am attempting to automate a file transfer in WinSCP. I have a site set up in the GUI that works perfectly every time. When I generate a script using the Generate Code option I receive a 503 Service Unavailable error when I execute the script.
Any help figuring this out will be appreciate.

WinSCP version: 5.15.3 (Build 9730)
Windows Version: Windows 10 Version 1803 and Windows 10 Version 1903
Protocol: WebDAV
GUI: Commander (successful transfers)
Scripting: Unsuccessful -503 error
Error message: . 2019-08-21 07:37:47.509 [status-line] < HTTP/1.1 503 Service Unavailable

Script/Command line:
open davs://H2H-H2H:h2HhL7t3St@integration-stage.hospicelink.com:6544/
# open StateServ

lcd \\hh-hl7\c$\programdata\hl7connect\data\stateserv\upload
cd /H2H

put -delete *.txt

exit

# Execute the script using a command like:
# "C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="C:\Users\public\documents\WinSCP.log" /ini=nul /script="C:\users\public\documents\StateServ.txt"




Bruce

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,949
Location:
Prague, Czechia

Re: 503 error in script - GUI works perfectly

Can you post log files both from GUI and the script?

Though, it's possible that your WebDAV servers runs in a subfolder only. So you may need to modify the script like:

open davs://...@integration-stage.hospicelink.com:6544/dav/

Reply with quote

bbachtell
Joined:
Posts:
2
Location:
Texas

Re: 503 error in script - GUI works perfectly

Martin,
You are BRILLIANT!!!! That nailed it. Thank you so much!
Bruce

martin wrote:

Can you post log files both from GUI and the script?

Though, it's possible that your WebDAV servers runs in a subfolder only. So you may need to modify the script like:

open davs://...@integration-stage.hospicelink.com:6544/dav/

Reply with quote

Advertisement

You can post new topics in this forum