Open
Description
Reporting an Issue or Missing Feature
I have noticed that for site collections with many subsites, I am getting HttpClient.Timeout when calling either using $web.Webs or Get-PnPSubweb
Expected behavior
I was expecting retry-handler to handle timeouts in http calls
Actual behavior
The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing
Steps to reproduce behavior
# note Start-PnPTrace enabled to console
# the site has to have a good amount of subsites (+3000!!!)
Connect-PnPOnline -ValidateConnection -Url https://contoso.sharepoint.com/sites/somesite -Tenant $tenantId -ClientId $clientId -Thumbprint $thumbprint
Get-PnPSubweb -Connection $connection -Verbose
VERBOSE: Cmdlet execution started for get-pnpsubweb -connection $connection -Verbose
pwsh Information: 0 : 2025-06-11 11:55:35.2039 [PnP.Framework] [0] [Information] Retrying request https://contea.sharepoint.com/sites/workpoint/_vti_bin/client.svc/ProcessQuery due to exception System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request. 0ms
pwsh Information: 0 : 2025-06-11 11:55:35.2063 [PnP.Framework] [0] [Information] Waiting 1 seconds before retrying 0ms
Get-PnPSubWeb: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
What is the version of the Cmdlet module you are running?
3.1.57 nightly
PowerShell 7.5.1
Which operating system/environment are you running PnP PowerShell on?
- [x ] Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify