Closed
Description
Invoke-MgGraphRequest
should always throw an exception when an error is encountered.
Repro Steps:
Connect-MgGraph
- Run
Invoke-MgGraphRequest -Uri "https://graph.microsoft.com/v1.0/sites/root/drives?test429=true" -ErrorAction Stop
. The service will respond withretry-after
header of 120 seconds. This exceeds the HTTPClient.Timeout default of 100 seconds. - No exception is thrown even though the request timed out.