Normalize web exception handling between PS 5 and PS 7 #223
Labels
bug
This relates to a bug in the existing module.
help wanted
Anyone in the community is welcome to do this work
up for grabs
Anyone in the community is welcome to do this work
Issue Details
This was identified by @X-Guardian as part of his verification for #200.
Steps to reproduce the issue
Observe the difference in behavior when calling this code between PS 5 and PS 7
Verbose logs showing the problem
n/a
Suggested solution to the issue
I did some initial investigation into this, and the additional work that will be needed is creating an equivalent version of
Get-HttpWebResponseContent
for aHttpResponseMessage
. Initially looking, the methods to get the stream are only async, so either an additional wrapper needs to be written to convert the async method to be synchronous, or an alternate approach will need to be found.Along the way, a little bit of refactoring may need to happen in the error handling of
Invoke-GHRestMethod
as well.Requested Assignment
I'm just reporting this problem, but don't want to fix it.
Operating System
PowerShell Version
Module Version
The text was updated successfully, but these errors were encountered: