I am using Powershell to pull files from our corporate FTP site (in Seattle) to an Azure server (east coast?). If I pull smaller files it works fine but if I pull a large file (250MB) I get an error. The error occurs after the file has completed being sent
(verified on FTP site). The error is "Exception calling "GetFile" with "2" argument(s): "Unable to read data from the transport connection: A connection attempt failed because the connected party did not respond after a period
The time it takes to pull the file is just over 10 minutes. I did notice that the FTP server indicated it had completed sending the file about a minute before the error was thrown on the client.
There are no errors in the firewall log, event log. I am able to pull the large file across using Filezilla. No errors are logged on the FTP server.
The code loops through all the files on the specified FTP path. Once the error occurs all subsequent GetFile calls fail with the same error.
Are there any timeout settings that may be at play here? Any advice would be appreciated.