Skip to content

Conversation

@mdewart-Centre
Copy link

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
Copy link
Owner

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

@BenTrustack
Copy link
Contributor

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
Copy link

ZSowman commented Nov 11, 2024

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

@dawsobr2
Copy link
Contributor

dawsobr2 commented Jan 6, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants