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

Error handling error 'GetResponseStream' #15

Open
Luke-Williams9 opened this issue Aug 29, 2022 · 0 comments
Open

Error handling error 'GetResponseStream' #15

Luke-Williams9 opened this issue Aug 29, 2022 · 0 comments
Assignees

Comments

@Luke-Williams9
Copy link

InvokeCWCWebRequest.ps1 does not seem to handle Invoke-Webrequest errors properly when catching then.
(# Issue Request, like 24)

This happens to me in Powershell 7, on Windows and Linux.

The error:
"Connect-CWC: Method invocation failed because [System.Net.Http.HttpResponseMessage] does not contain a method named 'GetResponseStream'"

I ran into this when connecting to CWC with a user that has insufficient permissions.

@christaylorcodes christaylorcodes self-assigned this Sep 13, 2022
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

No branches or pull requests

2 participants