Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

KPM and KVM will not work when behind a proxy #215

Closed
glennc opened this issue May 20, 2014 · 2 comments
Closed

KPM and KVM will not work when behind a proxy #215

glennc opened this issue May 20, 2014 · 2 comments
Assignees
Milestone

Comments

@glennc
Copy link
Member

glennc commented May 20, 2014

I've got errors when i use kvm and kpm without proxy

I changed kvm.ps1 for using webProxy

 $wc = New-Object System.Net.WebClient
 $proxy = New-Object System.Net.WebProxy
 $proxy.Address="http://myProxy:8888"
 $proxy.UseDefaultCredentials=true
 $wc.Proxy=$proxy

I'm not so familar with Powershell, but it works for me.

But I don't understand how setup proxy settings to packageManager.
kpm restore return

Error: FindPackageById: System.Console
An error occured while sending request

I hope you help me with this problem

@alexsandro-xpt
Copy link

Off comment: I think, by default System.Net.WebClient should using the set proxy from Windows OS. But is not this how to work.

@shaunxu
Copy link

shaunxu commented Jun 5, 2014

Same error on Ubuntu. kvm works behind proxy here when I configured the global proxy setting. But kpm not as it's written in C# instead of bash I think. So how can I specify the proxy setting to kpm?

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

No branches or pull requests

6 participants