christaylorcodes / ConnectWiseManageAPI

PowerShell wrapper for the ConnectWise Manage REST API
MIT License
108 stars 61 forks source link

Fix Invoke-WebRequest behavior changes with PowerShell 7. #58

Open mdewart-hummingbird opened 6 months ago

mdewart-hummingbird commented 6 months ago

PowerShell 7 changed the default behavior of Invoke-WebRequest. requiring a minor change when running in PS7 for some data to get returned when the API redirects to another URI for POST results (such as creating new tickets). Other than some formatting changes, this just checks $PSVersionTable.PSVersion.Major -ge 7, and adds the -AllowInsecureRedirect parameter if needed.

christaylorcodes commented 2 months ago

I don't think this is needed anymore. There was an issue with ConnectWise's proxy.

BenTrustack commented 2 weeks ago

I'm still seeing this issue pointing at eu.myconnectwise.net, error is calling for -AllowInsecureRedirect switch. What was the fix / can this be added in anyway?

ZSowman commented 4 days ago

I don't think this is needed anymore. There was an issue with ConnectWise's proxy.

This is very much needed, depending on your location and other CW factors we see this issue all the time