ConnectWiseManageAPI icon indicating copy to clipboard operation
ConnectWiseManageAPI copied to clipboard

Fix Invoke-WebRequest behavior changes with PowerShell 7.

Open mdewart-Centre opened this issue 1 year ago • 4 comments

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.

mdewart-Centre avatar Apr 23 '24 21:04 mdewart-Centre

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

christaylorcodes avatar Sep 03 '24 23:09 christaylorcodes

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?

BenTrustack avatar Oct 31 '24 11:10 BenTrustack

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

ZSowman avatar Nov 11 '24 22:11 ZSowman

I continue to see this issue as well and must use -ErrorAction SilentlyContinue to ignore

dawsobr2 avatar Jan 06 '25 19:01 dawsobr2