Re: WinSCP prompts for "connect" or "cancel" with automation causing timeout
Perfect email sent and logs attached to it.
2021-01-14 12:03:34.911 Detected network event
. 2021-01-14 12:03:34.911 Waiting for another 4 bytes
. 2021-01-14 12:03:34.911 Detected network event
. 2021-01-14 12:03:34.911 Waiting for another 4 bytes
. 2021-01-14 12:03:34.911 Received 16384 bytes
. 2021-01-14 12:03:34.911 Received 13613 bytes
. 2021-01-14 12:03:34.911 Read 4 bytes (16376 pending)
. 2021-01-14 12:03:34.911 Attempt to close connection due to fatal exception:
* 2021-01-14 12:03:34.911 Received too large (1728099963 B) SFTP packet. Max supported packet size is 1024000 B.
$session.DebugLogLevel = 2
Get-SFTPFile
cmdlet, what seems to be Posh-SSH code.
If we click "reconnect" in the GUI it works fine.
Do you believe this is something on the server side disconnecting it or client side?
I was wondering if there's a way to script this into PowerShell to automatically reconnect or suppress the prompt and continue attempting to download anyway.