I can run a certain WebReport from the front-end browser interface of Content Server and it takes about 15 minutes and completes properly, whether regular run or in background. However, if I run the same WR from an API call in PowerShell, there seems to be a timeout and produces this error:
"Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a receive."
If I change the breadth of the WR so it only take a couple minutes, it will run fine from API.
Note that the length of the WR depends on the amount of items it processes to then be added to a CSV file output.
I'm wondering if anyone knows if there are any settings in Content Server, or the machine running the API, or in the script itself, that might affect this timeout. Or would you have any other ideas?
Thanks,
Pascal