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

Getting "Operation is not supported on this platform" (Win7 x64, Powershell 6) #2472

Open
573 opened this issue Oct 29, 2018 · 0 comments
Open
Labels

Comments

@573
Copy link

573 commented Oct 29, 2018

if(!([Net.WebRequest]::DefaultWebProxy.IsBypassed('https://github.com/')))

Exception calling "IsBypassed" with "1" argument(s): "Operation is not supported
on this platform."
At C:\Users\me\Downloads\lein.ps1:43 char:8
+ if(!([Net.WebRequest]::DefaultWebProxy.IsBypassed('https://github ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : PlatformNotSupportedException

Commenting out the concerning if-Block works around it, when there is no proxy in use...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants