Proxy request failed, can't connect through proxy server

Advertisement

nicolas.fonterra
Joined:
Posts:
2

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!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
36,510
Location:
Prague, Czechia

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.

Reply with quote

nicolas.fonterra
Joined:
Posts:
2

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.

Reply with quote

Advertisement

You can post new topics in this forum