powershell_module_workdayapi icon indicating copy to clipboard operation
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."

Open treestryder opened this issue 1 year ago • 2 comments

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?

treestryder avatar Oct 26 '23 14:10 treestryder

Invoke-WebRequest defaults to an indefinite timeout, so that isn't it...

treestryder avatar Oct 26 '23 14:10 treestryder