powershell_module_workdayapi
powershell_module_workdayapi copied to clipboard
TerminatingError(Invoke-RestMethod): "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
Get-WorkdayWorker randomly fails with the following error. I am creating this issue after Get-WorkdayWorker failed when attempting to request page 67 of 174. I suspect Workday is timing out on long running requests, or even individual pages.
TerminatingError(Invoke-RestMethod): "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
Not sure what to do to improve matters. Might want to start by upgrading the Get_Workers request from version 30 to version 41. Which will likely require the upgrade of ConvertFrom-WorkdayWorker, Get-WorkdayWorkerPhone, Get-WorkdayWorkerEmail, Get-WorkdayWorkerNationalId, and Get-WorkdayWorkerOtherId, as well.
Anyone have thoughts on this?
Invoke-WebRequest defaults to an indefinite timeout, so that isn't it...