Skip to content

Error handling error 'GetResponseStream' #15

Description

@Luke-Williams9

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.

Activity

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

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions