Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mdewart-hummingbird
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