microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
691 stars 165 forks source link

All Invoke-MgGraphRequest commands return error 'format-default: Object reference not set to an instance of an object.' #2510

Open ThoughtContagion opened 8 months ago

ThoughtContagion commented 8 months ago

Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Execute Invoke-GraphRequest or Invoke-MgGraphRequest with Microsoft.Graph.Beta version 2.11.1 in PowerShell 7.4
  2. See error format-default: Object reference not set to an instance of an object.

Expected behavior

Values of the query returned.

Debug Output

Run the problematic command with -Debug and paste the resulting debug stream below. ⚠ ATTENTION: Be sure to remove any sensitive information that may be in the logs.

Module Version

Please run Get-Module Microsoft.Graph* after cmdlet execution and paste the output below. Microsoft.Graph.Beta 2.11.1

Environment Data

Please run $PSVersionTable and paste the output below. If running the Docker container image, indicate the tag of the image used and the version of Docker engine.

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      4      0
timayabi2020 commented 6 months ago

This issue will be tracked in https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1947