Skip to content

Invoke-MgGraphRequest Should Always Throw on Error #1014

Closed
@peombwa

Description

@peombwa

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 with retry-after header of 120 seconds. This exceeds the HTTPClient.Timeout default of 100 seconds.
  • No exception is thrown even though the request timed out.
    image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions