PSU Endpoint Timeouts at 100s

Product: PowerShell Universal
Version: 5.0.5

I’ve been setting up multiple endpoints in my Universal environment, but I encountered an issue with one specific endpoint when calling it via PowerShell. I receive the following error:

System.OperationCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.

The code behind this endpoint takes around 2 minutes to complete, causing the API call to time out. However, the PowerShell Universal logs show that the script continues running without errors and finishes successfully, even after the timeout.

I tried increasing the timeout value to 5000 under Edit Endpoint > Execution > Timeout, but unfortunately, it didn’t work. I also tried specifying executionTimeout in the web.config, but that didn’t help either.

At this point, I’m running out of ideas. Any help or suggestions would be greatly appreciated!

Reinstalled Universal and upgraded to 5.0.6 at the same time, seems to have solved the problem as I am no longer getting time out errors :slight_smile:

1 Like