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: Proxy request failed, can't connect through proxy server

"Complete session logs from both GUI and the script", please.

Did you assembly your raw settings on your own? Or did you have them generated by the GUI?
https://winscp.net/eng/docs/ui_generateurl
nicolas.fonterra

Re: Proxy request failed, can't connect through proxy server

. 2021-11-12 10:35:23.162 Session name: fonterraftp@www.electionz.com (Ad-Hoc site)
. 2021-11-12 10:35:23.162 Host name: www.electionz.com (IPv4, Port: 21)
. 2021-11-12 10:35:23.162 User name: fonterraftp (Password: Yes, Key file: No, Passphrase: No)
. 2021-11-12 10:35:23.162 Transfer Protocol: FTP
. 2021-11-12 10:35:23.162 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2021-11-12 10:35:23.162 Disable Nagle: No
. 2021-11-12 10:35:23.162 Proxy: HTTP
. 2021-11-12 10:35:23.162 HostName: NZAKLEproxyVIP.zeus.ghsewn.com (Port: 8080); Username: !syscmeproxyaccess; Passwd: Yes
. 2021-11-12 10:35:23.162 Send buffer: 262144
. 2021-11-12 10:35:23.162 UTF: Auto
. 2021-11-12 10:35:23.162 FTPS: Explicit TLS/SSL [Client certificate: No]
. 2021-11-12 10:35:23.162 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2021-11-12 10:35:23.162 Session reuse: Yes
. 2021-11-12 10:35:23.162 TLS/SSL versions: TLSv1.0-TLSv1.3
. 2021-11-12 10:35:23.162 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2021-11-12 10:35:23.162 Cache directory changes: Yes, Permanent: Yes
. 2021-11-12 10:35:23.162 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2021-11-12 10:35:23.162 Timezone offset: 0h 0m
. 2021-11-12 10:35:23.162 --------------------------------------------------------------------------
< 2021-11-12 10:35:23.162 Script: Connecting to www.electionz.com ...
. 2021-11-12 10:35:23.162 Connecting to www.electionz.com ...
. 2021-11-12 10:35:23.202 HTTP proxy command: CONNECT www.electionz.com:21 HTTP/1.1
 
. 2021-11-12 10:35:23.202 Host: www.electionz.com:21
 
. 2021-11-12 10:35:23.202 Authorization: Basic ***==
 
. 2021-11-12 10:35:23.202 Proxy-Authorization: Basic ***==
 
. 2021-11-12 10:35:23.202
 
< 2021-11-12 10:35:23.202 Script: Connection with proxy established, performing handshake...
. 2021-11-12 10:35:23.202 Connection with proxy established, performing handshake...
. 2021-11-12 10:35:23.337 HTTP proxy response: HTTP/1.1 407 Proxy Authentication Required
. 2021-11-12 10:35:23.337 Proxy request failed, can't connect through proxy server
. 2021-11-12 10:35:23.337 HTTP/1.1 407 Proxy Authentication Required
. 2021-11-12 10:35:23.337 An established connection was aborted by the software in your host machine.
. 2021-11-12 10:35:23.337 Connection failed.
< 2021-11-12 10:35:23.337 Script: Connection failed.
< 2021-11-12 10:35:23.337 Proxy request failed, can't connect through proxy server
 
< 2021-11-12 10:35:23.337 HTTP/1.1 407 Proxy Authentication Required
 
< 2021-11-12 10:35:23.337 An established connection was aborted by the software in your host machine.
 
< 2021-11-12 10:35:23.337 Connection failed.
martin

Re: Proxy request failed, can't connect through proxy server

What do you by "REMOVED as NO REQUIRED" at proxy hostname? Proxy hostname is always required.

Please post complete session logs from both GUI and the script.
nicolas.fonterra

Proxy request failed, can't connect through proxy server

Hi there,

I am using WinSCP as a way to connect to one of our "ftpes://xxxxxx" clients and I am totally fine when I create the session and connect to the clients server using the front end app. But then when I "generate session/URL code" and then try to execute it I am getting the following error:
< 2021-11-11 18:05:43.277 Script: Connection with proxy established, performing handshake...
. 2021-11-11 18:05:43.277 Connection with proxy established, performing handshake...
. 2021-11-11 18:05:43.387 HTTP proxy response: HTTP/1.1 407 Proxy Authentication Required
. 2021-11-11 18:05:43.387 Proxy request failed, can't connect through proxy server
. 2021-11-11 18:05:43.387 HTTP/1.1 407 Proxy Authentication Required
. 2021-11-11 18:05:43.389 An established connection was aborted by the software in your host machine.
. 2021-11-11 18:05:43.389 Connection failed.
< 2021-11-11 18:05:43.389 Script: Connection failed.
< 2021-11-11 18:05:43.389 Proxy request failed, can't connect through proxy server
 
< 2021-11-11 18:05:43.389 HTTP/1.1 407 Proxy Authentication Required
 
< 2021-11-11 18:05:43.389 An established connection was aborted by the software in your host machine.
 
< 2021-11-11 18:05:43.389 Connection failed.

Any ideas? As you can see I am using a proxy server as this is my way to get access using my working laptop but again, doing it from the front end using the proxy credential it works totally fine; the problem is while using the batch file.

These are my Raw Settings: (not sure if I should add / remove anything:
AddressFamily=1

LocalDirectory=C:%5CUsers%5CMyMachine%5CDocuments
RemoteDirectory=/Report
ProxyMethod=3
ProxyHost="REMOVED as NO REQUIRED"
ProxyPort=8080
ProxyUsername="REMOVED as SENSITIVE DATA"
FtpForcePasvIp2=0
SslSessionReuse=0
ProxyPassword="REMOVED as SENSITIVE DATA"

Any ideas? Cheers!